mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 20:07:14 +08:00
29 lines
835 B
Bash
29 lines
835 B
Bash
#contributions from Arch: https://projects.archlinux.org/svntogit/community.git/tree/trunk?h=packages/libsodium
|
|
|
|
pkgname=libsodium
|
|
pkgver=1.0.6
|
|
pkgrel=1
|
|
pkgdesc="P(ortable|ackageable) NaCl-based crypto library"
|
|
arch=('x86_64')
|
|
url="https://github.com/jedisct1/libsodium"
|
|
license=('custom:ISC')
|
|
depends=('glibc')
|
|
source=("http://download.dnscrypt.org/$pkgname/releases/$pkgname-${pkgver}.tar.gz")
|
|
sha512sums=('f1232bfd31f8ba60650f594af469e48797924de0d2ce1e9bd0be75614e19b77727b3bcaa9a553cd5613db92738caea79edca5f2ff77ab392b1dff570dcd6be7d')
|
|
|
|
build() {
|
|
cd "$pkgname-$pkgver"
|
|
|
|
./configure --prefix=/usr
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$pkgname-$pkgver"
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
# install license
|
|
install -d -m 755 "$pkgdir/usr/share/licenses/$pkgname"
|
|
install -m 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
}
|