summaryrefslogblamecommitdiff
path: root/user/php7-apcu/APKBUILD
blob: 4398a424de8fc0a868041fceda4e55a3a5462f50 (plain) (tree)
1
2
3
4
5



                                         
             



































                                                                                                  
                                                                                                                                                                      
# Contributor: zlg <zlg+adelie@zlg.space>
# Maintainer:
pkgname=php7-apcu
_pkgname=${pkgname#php7-}
pkgver=5.1.15
pkgrel=0
pkgdesc="Userland cache for PHP"
url="https://github.com/krakjoe/apcu"
arch="all"
license="PHP-3.01"
depends="php7"
makedepends="php7-dev"
subpackages=""
source="$pkgname-$pkgver.tar.gz::https://github.com/krakjoe/${_pkgname}/archive/v${pkgver}.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	cd "$builddir"
	phpize
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--enable-apcu
	make
}

check() {
	cd "$builddir"
	# The tests have a prompt at the end for sending stats
	make NO_INTERACTION=1 test
}

package() {
	cd "$builddir"
	# It didn't listen to DESTDIR
	make INSTALL_ROOT="$pkgdir" install
}

sha512sums="d95ab6a8a073acfc6af2f83b038f68e4150a1eb518369c163f4d1bc0c8b006c84754759fa9b72ac6f7ca008c27802a3a2aca14ae9d7ca23c02078d720a530b1c  php7-apcu-5.1.15.tar.gz"