aboutsummaryrefslogtreecommitdiffstats
path: root/community/php83-pecl-maxminddb/APKBUILD
blob: 9994c32d4c1b28edee940e9d0d5b58ae152a3403 (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
36
37
38
# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=php83-pecl-maxminddb
_extname=maxminddb
pkgver=1.11.1
pkgrel=0
pkgdesc="PHP 8.3 MaxMind DB Reader extension - PECL"
url="https://pecl.php.net/package/maxminddb"
arch="all"
license="Apache-2.0"
_phpv=83
_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="
12193a30928308e07d8abe352e5d823ee73029179cd20ee8552ea89ca597107319f6fff38169d870b54d40ec984dcfd619aeef4e2db3091b6d2706f4d7930912  php-pecl-maxminddb-1.11.1.tar.gz
"