aboutsummaryrefslogtreecommitdiffstats
path: root/community/php7-pecl-maxminddb/APKBUILD
blob: c9e4d3a208d5aa8ba4791bcf2209602f6da0dafa (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
# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=php7-pecl-maxminddb
_extname=maxminddb
pkgver=1.10.0
pkgrel=0
pkgdesc="PHP MaxMind DB Reader extension - PECL"
url="https://pecl.php.net/package/maxminddb"
arch="all"
license="Apache-2.0"
depends="php7-bcmath"
makedepends="libmaxminddb-dev php7-dev"
source="php-pecl-$_extname-$pkgver.tar.gz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
builddir="$srcdir/$_extname-$pkgver/ext"
provides="php7-maxminddb=$pkgver-r$pkgrel" # for backward compatibility
replaces="php7-maxminddb" # for backward compatibility

build() {
	phpize7
	./configure --prefix=/usr \
		--with-php-config=/usr/bin/php-config7
	make
}

check() {
	make test NO_INTERACTION=1 REPORT_EXIT_STATUS=1
}

package() {
	make INSTALL_ROOT="$pkgdir" install

	local confdir="$pkgdir"/etc/php7/conf.d
	install -d $confdir
	echo "extension=maxminddb.so" > $confdir/maxminddb.ini
}

sha512sums="5d812b7ef0b31a22f9877a984facf335419b7274570545b815bd5494adc41a716cbf2449338ed8e708745ea7a169be050a94a51664b0c7573be5b3f347b28951  php-pecl-maxminddb-1.10.0.tar.gz"