aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Postnikov <apostnikov@gmail.com>2021-01-23 04:18:56 +0200
committerAndy Postnikov <apostnikov@gmail.com>2021-01-23 04:25:39 +0200
commit238372cab24795617f4b26f167adbc5ad821a00b (patch)
tree9f5155439479c812fcc164a85da17742ef5bf279
parent77eacc7767493deeca54457ae6246df2b3716e66 (diff)
downloadaports-238372cab24795617f4b26f167adbc5ad821a00b.tar.gz
aports-238372cab24795617f4b26f167adbc5ad821a00b.tar.bz2
aports-238372cab24795617f4b26f167adbc5ad821a00b.tar.xz
testing/php8-snappy: new aport
-rw-r--r--testing/php8-snappy/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/php8-snappy/APKBUILD b/testing/php8-snappy/APKBUILD
new file mode 100644
index 0000000000..75b549a3f4
--- /dev/null
+++ b/testing/php8-snappy/APKBUILD
@@ -0,0 +1,41 @@
+# Contributor: Andy Postnikov <apostnikov@gmail.com>
+# Maintainer: Andy Postnikov <apostnikov@gmail.com>
+pkgname=php8-snappy
+_extname=snappy
+pkgver=0.2.1
+pkgrel=0
+pkgdesc="Snappy extension for PHP 8"
+url="https://github.com/kjdev/php-ext-snappy"
+arch="all"
+license="PHP-3.01"
+depends="php8-common"
+makedepends="php8-dev php8-pecl-apcu snappy-dev"
+source="php-$_extname-$pkgver.tar.gz::https://github.com/kjdev/php-ext-snappy/archive/$pkgver.tar.gz"
+builddir="$srcdir/php-ext-snappy-$pkgver"
+
+build() {
+ phpize8
+ ./configure \
+ --prefix=/usr \
+ --with-php-config=php-config8 \
+ --with-snappy-includedir
+ make
+}
+
+check() {
+ local _modules=/usr/lib/php8/modules
+ make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test \
+ SKIP_ONLINE_TESTS=1 PHP_TEST_SHARED_EXTENSIONS=" \
+ -d extension=$_modules/apcu.so \
+ -d extension=modules/$_extname.so" TESTS=--show-diff
+ php8 -d extension=modules/$_extname.so --ri $_extname
+}
+
+package() {
+ make INSTALL_ROOT="$pkgdir"/ install
+ local confdir="$pkgdir"/etc/php8/conf.d
+ install -d $confdir
+ echo "extension=$_extname" > $confdir/50_$_extname.ini
+}
+
+sha512sums="51cdfe7c5d020cb954cbf555038aca8398867584a587eb838f07089612d3978a182d0bc04015608a2aaf71bf9a5b5896e5d92b56f3b2d5fe9e1116f9509acb1e php-snappy-0.2.1.tar.gz"