mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-21 00:21:37 +01:00
32 lines
880 B
Plaintext
32 lines
880 B
Plaintext
# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
|
|
# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
|
|
pkgname=php7-libsodium
|
|
_pkgreal=libsodium
|
|
pkgver=2.0.4
|
|
pkgrel=0
|
|
pkgdesc="A simple, low-level PHP extension for libsodium"
|
|
url="http://pecl.php.net/package/$_pkgreal"
|
|
arch="all"
|
|
license="PHP"
|
|
makedepends="php7-dev autoconf libsodium-dev"
|
|
source="http://pecl.php.net/get/$_pkgreal-$pkgver.tgz"
|
|
builddir="$srcdir/$_pkgreal-$pkgver"
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
|
|
phpize7
|
|
./configure --prefix=/usr --with-php-config=php-config7
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
|
|
make INSTALL_ROOT="$pkgdir"/ install
|
|
install -d "$pkgdir"/etc/php7/conf.d
|
|
echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/50_$_pkgreal.ini
|
|
}
|
|
|
|
sha512sums="bf3eea53f062611e5be2704fa2208376efb30d5e51ab72d1ab6ccf08d78ec8490d1c8cd09624374488fdfd0cfe3fdbf86733fc36fcad9026bb776618ddd70884 libsodium-2.0.4.tgz"
|