blob: fb206c7a1469dca5e7544d37cec272482ea98716 (
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
|
# $Id: PKGBUILD 161426 2012-06-11 09:03:14Z pierre $
# Maintainer: Pierre Schmitz <pierre@archlinux.de>
pkgname=php-apc
pkgver=3.1.10
pkgrel=3
arch=('i686' 'x86_64')
pkgdesc='A free, open, and robust framework for caching and optimizing PHP intermediate code'
url='http://pecl.php.net/package/APC'
depends=('php')
license=('PHP')
source=("http://pecl.php.net/get/APC-${pkgver}.tgz"
'svn.patch')
backup=('etc/php/conf.d/apc.ini')
md5sums=('f4a6b91903d6ba9dce89fc87bb6f26c9'
'ce07a1b49b5af496e16362899df3e3c4')
build() {
cd $srcdir/APC-$pkgver
patch -p0 -i ${srcdir}/svn.patch
phpize
./configure --prefix=/usr
make
}
# check() {
# cd $srcdir/APC-$pkgver
# make test
# }
package() {
cd $srcdir/APC-$pkgver
make INSTALL_ROOT=$pkgdir install
echo ';extension=apc.so' > apc.ini
install -D -m644 apc.ini $pkgdir/etc/php/conf.d/apc.ini
install -D -m644 apc.php $pkgdir/usr/share/php-apc/apc.php
install -D -m644 INSTALL $pkgdir/usr/share/doc/php-apc/install.txt
}
|