blob: 70e4c18c5359b845b58c432971ae6f7dd5e7204b (
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
|
# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
pkgname=php7-timezonedb
_pkgreal=timezonedb
pkgver=2018.3
pkgrel=1
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"
|