aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php7-timezonedb/APKBUILD
blob: a2a400246cf035ae6d33dda2dcf781320185cae3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
pkgname=php7-timezonedb
_pkgreal=timezonedb
pkgver=2017.3
pkgrel=0
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"
install=""
subpackages=""
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="5f6064064a71bf973f7581d452cad909ca2203c4c8773ca7cb31307c3cbe63613adf972cfc6c7b0800215018e2fb3c4b7a2d7d0df171243319ab63047e9099fc  timezonedb-2017.3.tgz"