# Contributor: Fabio Ribeiro # Maintainer: Fabio Ribeiro pkgname=php7-pecl-timezonedb _pkgreal=timezonedb pkgver=2019.2 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() { cd "$builddir" 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() { cd "$builddir" 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="b81b2ec384c0d2534ce52795dcfdb5e4494a702498a848a84acce060b151fd4f0554bf73259a4ceaf4f3deec8c72ff9413228282f7792dbff991ce0c77b94586 timezonedb-2019.2.tgz"