🔒 Repository is read-only – file editing is disabled.
1234567891011121314151617181920212223242526272829
pkgname: libsodium
pkgver: '1.0.22'
pkgrel: '1'
pkgdesc: P(ortable|ackageable) NaCl-based crypto library
url: 'https://github.com/jedisct1/libsodium'
arch: x86_64
license:
- 'Custom:ISC'
depends: []
makedepends: []
source:
- 'https://download.libsodium.org/libsodium/releases/libsodium-${pkgver}.tar.gz'
sha256sums:
- adbdd8f16149e81ac6078a03aca6fc03b592b89ef7b5ed83841c086191be3349
build: |
cd ${pkgname}-${pkgver}
./configure --prefix=/usr
make
package: |
rm -f ${PKGDIR}/usr/lib/libsodium.la
install -Dm644 ./${pkgname}-${pkgver}/LICENSE ${PKGDIR}/usr/share/licenses/${pkgname}/LICENSE
update: |
local url ext
url="https://download.${pkgname}.org/${pkgname}/releases/"
ext=".tar.gz"
lynx -read_timeout=20 -dump -listonly -nonumbers \
$url?C=M\;O=A|grep ${pkgname}-[0-9]|grep [0-9]$ext$| \
sed "s@$url${pkgname}-@@"|sed "s@$ext@@"|tail -1