mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 03:05:48 +03:00
34 lines
981 B
Text
34 lines
981 B
Text
# Contributor: TBK <alpine@jjtc.eu>
|
|
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
|
|
pkgname=php8-pecl-maxminddb
|
|
_extname=maxminddb
|
|
pkgver=1.10.1
|
|
pkgrel=0
|
|
pkgdesc="PHP 8 MaxMind DB Reader extension - PECL"
|
|
url="https://pecl.php.net/package/maxminddb"
|
|
arch="all"
|
|
license="Apache-2.0"
|
|
depends="php8-bcmath"
|
|
makedepends="php8-dev libmaxminddb-dev"
|
|
source="php-pecl-$_extname-$pkgver.tar.gz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
|
|
builddir="$srcdir/$_extname-$pkgver/ext"
|
|
|
|
build() {
|
|
phpize8
|
|
./configure --prefix=/usr --with-php-config=/usr/bin/php-config8
|
|
make
|
|
}
|
|
|
|
check() {
|
|
make test NO_INTERACTION=1 REPORT_EXIT_STATUS=1
|
|
}
|
|
|
|
package() {
|
|
make INSTALL_ROOT="$pkgdir" install
|
|
|
|
local confdir="$pkgdir"/etc/php8/conf.d
|
|
install -d $confdir
|
|
echo "extension=maxminddb" > $confdir/maxminddb.ini
|
|
}
|
|
|
|
sha512sums="51fe1e5e184032e60d5fb9c0c748f645a6d3532477e7fc22da9d114e9f5021ce902e685eb9eed915365fbedea44797bee72085d17fc7d582a21f47934fd93acc php-pecl-maxminddb-1.10.1.tar.gz"
|