aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php5-libsodium/APKBUILD
diff options
context:
space:
mode:
authorBartłomiej Piotrowski <b@bpiotrowski.pl>2016-08-01 16:41:47 +0200
committerBartłomiej Piotrowski <b@bpiotrowski.pl>2016-08-01 16:42:51 +0200
commit5212907a5f340bc262e9ca8d6db1dae5f011bbfc (patch)
tree24e2834e6db731d4c612f185df85274a319a6d57 /testing/php5-libsodium/APKBUILD
parent3ba795389a2cc545e276465335761c0670255704 (diff)
downloadaports-5212907a5f340bc262e9ca8d6db1dae5f011bbfc.tar.bz2
aports-5212907a5f340bc262e9ca8d6db1dae5f011bbfc.tar.xz
testing/php-libsodium: rename to php5-libsodium
Diffstat (limited to 'testing/php5-libsodium/APKBUILD')
-rw-r--r--testing/php5-libsodium/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/testing/php5-libsodium/APKBUILD b/testing/php5-libsodium/APKBUILD
new file mode 100644
index 0000000000..ade8944531
--- /dev/null
+++ b/testing/php5-libsodium/APKBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Ben Reichert <ben@tonzy.com>
+pkgname=php5-libsodium
+pkgver=1.0.6
+pkgrel=0
+pkgdesc="php wrapper for libsodium library"
+url="https://github.com/jedisct1/libsodium-php"
+arch="all"
+license="ISC"
+depends="php5"
+depends_dev=""
+makedepends="libsodium-dev libc-dev gcc make autoconf php5-dev"
+install=""
+source="$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz"
+
+builddir="$srcdir/libsodium-php-$pkgver"
+
+build() {
+ cd "$builddir"
+ phpize --clean || return 1
+ phpize || return 1
+ ./configure --prefix=/usr/ || return 1
+ make || return 1
+}
+
+package() {
+ install -d "$pkgdir/etc/php/conf.d/"
+ install -d "$pkgdir/usr/lib/php/modules/"
+ install -Dm755 "$builddir/modules/libsodium.so" "$pkgdir/usr/lib/php/modules"
+ echo "extension=libsodium.so" >> "$pkgdir/etc/php/conf.d/libsodium.ini"
+}
+
+md5sums="30584a13fda5d4767cffb52c641ffc9b php5-libsodium-1.0.6.tar.gz"
+sha256sums="537944529e7c591e4bd6c73f37e926e538e8ff1f6384747c301436fb78269b9c php5-libsodium-1.0.6.tar.gz"
+sha512sums="8ac239d4573988a1f208bb9442aa982304ade7f419e53a56f00de73972717c3336c74563a92bf4b17d3573503468677a24f7d0cd87f1c8f91095b75b8aa19740 php5-libsodium-1.0.6.tar.gz"