aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php7-libsodium/APKBUILD
blob: ab8b93a1832a5b29a48bc61adcfd7b731ee77d15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# 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"