# Contributor: Fabio Ribeiro # Maintainer: Fabio Ribeiro pkgname=php7-timezonedb _pkgreal=timezonedb pkgver=2018.3 pkgrel=2 pkgdesc="Timezone Database to be used with PHP's date and time functions." url="http://pecl.php.net/package/$_pkgreal" arch="all" license="PHP" depends="" makedepends="php7-dev autoconf" source="http://pecl.php.net/get/$_pkgreal-$pkgver.tgz" builddir="$srcdir/$_pkgreal-$pkgver" options="!check" # upstream does not provide tests yet build() { cd "$builddir" phpize7 ./configure --prefix=/usr --with-php-config=php-config7 make } 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="0dc2d7e64e3f66248ba11098bdc2e4ace75f596a9271e075f65b39a507c681b66a3d49d9e31ba116c47808e29b289cc01e5d671d6bc676b9783c3532db817f96 timezonedb-2018.3.tgz"