diff options
-rw-r--r-- | testing/php-libsodium/APKBUILD | 42 | ||||
-rw-r--r-- | testing/php5-libsodium/APKBUILD | 34 |
2 files changed, 34 insertions, 42 deletions
diff --git a/testing/php-libsodium/APKBUILD b/testing/php-libsodium/APKBUILD deleted file mode 100644 index c0d885c792..0000000000 --- a/testing/php-libsodium/APKBUILD +++ /dev/null @@ -1,42 +0,0 @@ -# Packager: Ben Reichert <ben@tonzy.com> -pkgname=php-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="libsodium php" -depends_dev="" -makedepends="libsodium-dev libc-dev gcc make autoconf php-dev" -install="" -source="$pkgname-$pkgver.tar.gz::https://github.com/jedisct1/libsodium-php/archive/1.0.6.tar.gz" -pkgdir="$srcdir/pkg" - -_builddir="$srcdir/libsodium-php-$pkgver" -prepare() { - local i - cd "$_builddir" -} - -build() { - cd "$_builddir" - phpize --clean || return 1 - phpize || return 1 - EXTENSION_DIR="$_builddir/tmp" - ./configure --prefix=/usr/ || return 1 - make || return 1 -} - -package() { - mkdir -p "$pkgdir" - cd "$pkgdir" - mkdir -p "$pkgdir/etc/php/conf.d/" - mkdir -p "$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 php-libsodium-1.0.6.tar.gz" -sha256sums="537944529e7c591e4bd6c73f37e926e538e8ff1f6384747c301436fb78269b9c php-libsodium-1.0.6.tar.gz" -sha512sums="8ac239d4573988a1f208bb9442aa982304ade7f419e53a56f00de73972717c3336c74563a92bf4b17d3573503468677a24f7d0cd87f1c8f91095b75b8aa19740 php-libsodium-1.0.6.tar.gz" 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" |