blob: d41d2d85a8ecd1e41f6b3bfc366b8fd46016d553 (
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
35
|
# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
pkgname=php7-timezonedb
_pkgreal=timezonedb
pkgver=2017.2
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"
install=""
subpackages=""
source="http://pecl.php.net/get/$_pkgreal-$pkgver.tgz"
builddir="$srcdir"/$_pkgreal-$pkgver
build() {
cd "$builddir"
phpize7 || return 1
./configure --prefix=/usr --with-php-config=php-config7 || return 1
make || return 1
}
package() {
cd "$builddir"
make INSTALL_ROOT="$pkgdir"/ install || return 1
install -d "$pkgdir"/etc/php7/conf.d || return 1
echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/40_$_pkgreal.ini
}
md5sums="f3781f2487037e33f8a5543781301c0e timezonedb-2017.2.tgz"
sha256sums="e96ea4045a2886d68d15ad64e8d0ace1dd5287b08226e422bc7befb27944927a timezonedb-2017.2.tgz"
sha512sums="767b24c406b2599aefb67e97bb96114e51f12a5f53397ce3607a8030e10320348705ad28cc2a717002d9c1112f7fe97041201e6a09e5c773926543459ff1e65f timezonedb-2017.2.tgz"
|