aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php7-timezonedb/APKBUILD
blob: 433ad2802fd8a6bf3a28792615098cce96ed3726 (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=2018.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="0dc2d7e64e3f66248ba11098bdc2e4ace75f596a9271e075f65b39a507c681b66a3d49d9e31ba116c47808e29b289cc01e5d671d6bc676b9783c3532db817f96  timezonedb-2018.3.tgz"