diff options
author | Andy Postnikov <apostnikov@gmail.com> | 2018-10-21 00:36:10 +0300 |
---|---|---|
committer | Andy Postnikov <apostnikov@gmail.com> | 2018-10-21 00:41:45 +0300 |
commit | 9f6448c10b8fcbd292acccb45130909e38e829e6 (patch) | |
tree | 684c5047004fc35d17768b50fdc9ed8ff06e16ed /community/php7-pecl-timezonedb/APKBUILD | |
parent | 87de79fa2a249213136e19b80b3ae974037518eb (diff) | |
download | aports-9f6448c10b8fcbd292acccb45130909e38e829e6.tar.bz2 aports-9f6448c10b8fcbd292acccb45130909e38e829e6.tar.xz |
community/php7-pecl-timezonedb: renamed from php7-timezonedb, modernize
Diffstat (limited to 'community/php7-pecl-timezonedb/APKBUILD')
-rw-r--r-- | community/php7-pecl-timezonedb/APKBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/community/php7-pecl-timezonedb/APKBUILD b/community/php7-pecl-timezonedb/APKBUILD new file mode 100644 index 0000000000..899697d954 --- /dev/null +++ b/community/php7-pecl-timezonedb/APKBUILD @@ -0,0 +1,33 @@ +# Contributor: Fabio Ribeiro <fabiorphp@gmail.com> +# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com> +pkgname=php7-pecl-timezonedb +_pkgreal=timezonedb +pkgver=2018.5 +pkgrel=1 +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" +source="https://pecl.php.net/get/$_pkgreal-$pkgver.tgz" +builddir="$srcdir/$_pkgreal-$pkgver" +options="!check" # upstream does not provide tests yet +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 +} + +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="6e06c1735e7cd0bddf360ed270ca05ab49c2115569d24a9ef235c25496726ab90c3df0320bd329237867336164f35a949fa048cd404077420bc83c2d8d36b899 timezonedb-2018.5.tgz" |