aboutsummaryrefslogtreecommitdiffstats
path: root/community/php7-pecl-timezonedb/APKBUILD
blob: 9ab0791733ee93e327aee2f8c8878229f7f504f1 (plain) (blame)
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
35
36
# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
pkgname=php7-pecl-timezonedb
_extname=timezonedb
pkgver=2020.3
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-3.01"
depends="php7-common"
makedepends="php7-dev"
source="https://pecl.php.net/get/$_extname-$pkgver.tgz"
builddir="$srcdir/$_extname-$pkgver"
provides="php7-timezonedb=$pkgver-r$pkgrel" # for backward compatibility
replaces="php7-timezonedb" # for backward compatibility

build() {
	phpize7
	./configure --prefix=/usr --with-php-config=php-config7
	make
}

check() {
	# Test suite is not a part of pecl release.
	php7 -d extension=modules/$_extname.so --ri $_extname
}

package() {
	make INSTALL_ROOT="$pkgdir" install
	local _confdir="$pkgdir"/etc/php7/conf.d
	install -d $_confdir
	echo "extension=$_extname.so" > $_confdir/40_$_extname.ini
}

sha512sums="901ab43e346f7edc61f16b99036d04d1294d1af8899c2b351bb6ff0e94da546c32050497a0671508505ec2ea52efb154db14fe3e1bde64c5d62ddc385f926a79  timezonedb-2020.3.tgz"