mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 19:55:26 +03:00
37 lines
961 B
Text
37 lines
961 B
Text
# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
|
|
# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
|
|
pkgname=php7-libsodium
|
|
_pkgreal=libsodium
|
|
pkgver=2.0.10
|
|
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
|
|
}
|
|
|
|
check() {
|
|
cd "$builddir"
|
|
|
|
make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test
|
|
}
|
|
|
|
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="1d24a107f1527ccd1a59924e9af9ce600b9acd124af3e28cb59edd9b40d74dee0519e28b6bc4a71c695ba0ddea9175259da049e5854a09be5d50c7e1ee7268a4 libsodium-2.0.10.tgz"
|