diff options
author | Tomasz Gruszka | 2019-12-30 14:29:33 +0100 |
---|---|---|
committer | Tomasz Gruszka | 2019-12-30 14:29:33 +0100 |
commit | 99721350a260b8b2696b90a8d50c1f466ee355d4 (patch) | |
tree | 7d3d5707096e86f8f256daabd2e4a43da8b13876 | |
download | aur-99721350a260b8b2696b90a8d50c1f466ee355d4.tar.gz |
Initial commit.
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 34 |
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b8ffe4996523 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = php73-apcu + pkgdesc = A userland caching module for PHP + pkgver = 5.1.18 + pkgrel = 1 + url = https://pecl.php.net/package/APCu + arch = i686 + arch = x86_64 + license = PHP + depends = php73 + provides = php-apcu + backup = etc/php73/conf.d/apcu.ini + source = https://pecl.php.net/get/apcu-5.1.18.tgz + sha256sums = d46debe7acad6073b663ba1710c5cac671a60bf666966cf199bf6d07499bde2b + +pkgname = php73-apcu + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b0ac594f052e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Tomasz Gruszka <tompear79@gmail.com> +# Contributor: Thomas Pulzer <t.pulzer@thesecretgamer.de> +_phpversion=73 +pkgname=php${_phpversion}-apcu +pkgver=5.1.18 +pkgrel=1 +arch=('i686' 'x86_64') +pkgdesc='A userland caching module for PHP' +url='https://pecl.php.net/package/APCu' +depends=("php${_phpversion}") +provides=("php-apcu") +license=('PHP') +source=("https://pecl.php.net/get/apcu-${pkgver}.tgz") +backup=("etc/php${_phpversion}/conf.d/apcu.ini") +sha256sums=('d46debe7acad6073b663ba1710c5cac671a60bf666966cf199bf6d07499bde2b') + +build() { + cd "${srcdir}/apcu-${pkgver}" + phpize${_phpversion} + ./configure --config-cache \ + --sysconfdir="/etc/php${_phpversion}" \ + --with-php-config=/usr/bin/php-config${_phpversion} \ + --localstatedir=/var + make +} + +package() { + cd "${srcdir}/apcu-${pkgver}" + make INSTALL_ROOT=${pkgdir} install + echo 'extension=apcu.so' > apcu.ini + install -D -m644 apcu.ini "${pkgdir}/etc/php${_phpversion}/conf.d/apcu.ini" + install -D -m644 apc.php "${pkgdir}/usr/share/${pkgname}/apc.php" + install -D -m644 INSTALL "${pkgdir}/usr/share/doc/${pkgname}/install.txt" +} |