From a631ca8a3e0a4bfcda66089b824f5ffdb9b5da15 Mon Sep 17 00:00:00 2001 From: Andy Postnikov Date: Mon, 7 Dec 2020 05:08:27 +0200 Subject: [PATCH] testing/php8-pecl-timezone: new aport --- testing/php8-pecl-timezone/APKBUILD | 34 +++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 testing/php8-pecl-timezone/APKBUILD diff --git a/testing/php8-pecl-timezone/APKBUILD b/testing/php8-pecl-timezone/APKBUILD new file mode 100644 index 00000000000..8672f933133 --- /dev/null +++ b/testing/php8-pecl-timezone/APKBUILD @@ -0,0 +1,34 @@ +# Contributor: Fabio Ribeiro +# Maintainer: Andy Postnikov +pkgname=php8-pecl-timezonedb +_extname=timezonedb +pkgver=2020.4 +pkgrel=0 +pkgdesc="Timezone Database to be used with PHP's date and time functions." +url="https://pecl.php.net/package/timezonedb" +arch="all" +license="PHP-3.01" +depends="php8-common" +makedepends="php8-dev" +source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz" +builddir="$srcdir/$_extname-$pkgver" + +build() { + phpize8 + ./configure --prefix=/usr --with-php-config=php-config8 + make +} + +check() { + # Test suite is not a part of pecl release. + php8 -dextension=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/40_$_extname.ini +} + +sha512sums="d5c41c76b4b0b033464a4f086072d061504fc439c910c47a7077a0586b308cc37a4202ff9f418a39cee63534d55136d15a173bb94923160c0fa16bb33ac89a09 php-pecl-timezonedb-2020.4.tgz"