# Contributor: Fabio Ribeiro # Maintainer: Fabio Ribeiro pkgname=php7-pecl-timezonedb _pkgreal=timezonedb pkgver=2020.1 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" depends="php7-common" makedepends="php7-dev autoconf re2c" source="https://pecl.php.net/get/$_pkgreal-$pkgver.tgz" builddir="$srcdir/$_pkgreal-$pkgver" provides="php7-timezonedb=$pkgver-r$pkgrel" # for backward compatibility replaces="php7-timezonedb" # for backward compatibility build() { phpize7 ./configure --prefix=/usr --with-php-config=php-config7 make } check() { # Test suite is not a part of pecl release. php7 -d extension="$builddir"/modules/$_pkgreal.so --ri $_pkgreal } package() { make INSTALL_ROOT="$pkgdir"/ install install -d "$pkgdir"/etc/php7/conf.d echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/40_$_pkgreal.ini } sha512sums="31c38d5b25db921ec5be924ac85d9cf9dd2180c4e2d50e074a143dfdf9415a8c7579e96f7a768b305554bf1cb332b46f2c652fda7d2f1638502b995fc0679ca5 timezonedb-2020.1.tgz"