mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-26 11:02:20 +01:00
testing/php8-pecl-timezone: new aport
This commit is contained in:
parent
03926ef183
commit
a631ca8a3e
34
testing/php8-pecl-timezone/APKBUILD
Normal file
34
testing/php8-pecl-timezone/APKBUILD
Normal file
@ -0,0 +1,34 @@
|
||||
# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
|
||||
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
|
||||
pkgname=php8-pecl-timezonedb
|
||||
_extname=timezonedb
|
||||
pkgver=2020.4
|
||||
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="php8-common"
|
||||
makedepends="php8-dev"
|
||||
source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
|
||||
builddir="$srcdir/$_extname-$pkgver"
|
||||
|
||||
build() {
|
||||
phpize8
|
||||
./configure --prefix=/usr --with-php-config=php-config8
|
||||
make
|
||||
}
|
||||
|
||||
check() {
|
||||
# Test suite is not a part of pecl release.
|
||||
php8 -dextension=modules/$_extname.so --ri $_extname
|
||||
}
|
||||
|
||||
package() {
|
||||
make INSTALL_ROOT="$pkgdir" install
|
||||
local _confdir="$pkgdir"/etc/php8/conf.d
|
||||
install -d $_confdir
|
||||
echo "extension=$_extname" > $_confdir/40_$_extname.ini
|
||||
}
|
||||
|
||||
sha512sums="d5c41c76b4b0b033464a4f086072d061504fc439c910c47a7077a0586b308cc37a4202ff9f418a39cee63534d55136d15a173bb94923160c0fa16bb33ac89a09 php-pecl-timezonedb-2020.4.tgz"
|
||||
Loading…
x
Reference in New Issue
Block a user