aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php7-snappy/APKBUILD
blob: 72ff19644a79952fd193f8068ee1809acee6c1ff (plain) (blame)
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
# Contributor: Andy Postnikov <apostnikov@gmail.com>
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=php7-snappy
_pkgreal=snappy
pkgver=0.1.12
pkgrel=0
pkgdesc="Snappy Extension for PHP"
url="https://github.com/kjdev/php-ext-snappy"
arch="all"
license="PHP-3.01"
depends="php7-common"
makedepends="php7-dev snappy-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/kjdev/php-ext-snappy/archive/$pkgver.tar.gz"
builddir="$srcdir/php-ext-snappy-$pkgver"

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

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

package() {
	make INSTALL_ROOT="$pkgdir"/ install
	local confdir="$pkgdir"/etc/php7/conf.d
	install -d $confdir
	echo "extension=$_pkgreal.so" > $confdir/50_$_pkgreal.ini
}

sha512sums="793781d0418616850251facad61116012ba81009c5a65e7cb3f44ce1f59039f6840e287b07e253d2c985053b60c61d30cc0c58388c6bf918900aa963e84b251a  php7-snappy-0.1.12.tar.gz"