diff options
Diffstat (limited to 'testing/php5-libsodium/APKBUILD')
-rw-r--r-- | testing/php5-libsodium/APKBUILD | 34 |
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" |