summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 15e4c536a85bd54145918fdcd86499425269c29c (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
# Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>

pkgname=php-txforward
_extname=txforward
pkgver=1.0.7
pkgrel=1
pkgdesc="PHP extension that makes reverse-proxing totally invisible for php applications."
arch=("i686" "x86_64")
url="http://fcartegnie.free.fr/patchs/txforward.html"
license=('PHP')
depends=('php')
source=("http://pecl.php.net/get/$_extname-$pkgver.tgz")
backup=("etc/php/conf.d/$_extname.ini")
md5sums=('46b80b0f8acfeda5364d8e0812e0a34f')

build() {
	cd "${srcdir}/$_extname-$pkgver"

	phpize
	./configure
	make

	install -m0755 -d "$pkgdir/etc/php/conf.d/"
	echo "extension=$_extname.so" > "$pkgdir/etc/php/conf.d/$_extname.ini"
	chmod 0644 "$pkgdir/etc/php/conf.d/$_extname.ini"
	install -m0755 -D ".libs/$_extname.so" "$pkgdir$(php-config --extension-dir)/$_extname.so"
}

# vim:set ts=2 sw=2 et: