mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-11 13:16:45 +02:00
38 lines
1,023 B
Text
38 lines
1,023 B
Text
# Contributor: TBK <alpine@jjtc.eu>
|
|
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
|
|
pkgname=php81-pecl-maxminddb
|
|
_extname=maxminddb
|
|
pkgver=1.12.0
|
|
pkgrel=0
|
|
pkgdesc="PHP 8.1 MaxMind DB Reader extension - PECL"
|
|
url="https://pecl.php.net/package/maxminddb"
|
|
arch="all"
|
|
license="Apache-2.0"
|
|
_phpv=81
|
|
_php=php$_phpv
|
|
depends="$_php-bcmath"
|
|
makedepends="$_php-dev libmaxminddb-dev"
|
|
source="php-pecl-$_extname-$pkgver.tar.gz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
|
|
builddir="$srcdir/$_extname-$pkgver/ext"
|
|
|
|
build() {
|
|
phpize$_phpv
|
|
./configure --prefix=/usr --with-php-config=/usr/bin/php-config$_phpv
|
|
make
|
|
}
|
|
|
|
check() {
|
|
make test NO_INTERACTION=1 REPORT_EXIT_STATUS=1
|
|
}
|
|
|
|
package() {
|
|
make INSTALL_ROOT="$pkgdir" install
|
|
|
|
local confdir="$pkgdir"/etc/$_php/conf.d
|
|
install -d $confdir
|
|
echo "extension=maxminddb" > $confdir/maxminddb.ini
|
|
}
|
|
|
|
sha512sums="
|
|
4203f4e86b8a43661a8da7ed9ed623752df0e1ea920066b6d2fb60fd96ec8d7c2886fe4aad7c5df4131d13d078d215e43fe7cf7e60695d9dc4b855006a043fe4 php-pecl-maxminddb-1.12.0.tar.gz
|
|
"
|