updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / phc / PKGBUILD
blob6a42a71b07288f2d66ac356709fdcf148ac45ea7
1 # Contributor: Your Name <korin43 at gmail dot com>
3 pkgname=phc
4 pkgver=0.2.0.3
5 pkgrel=4
6 pkgdesc="the open source php compiler"
7 arch=('i686' 'x86_64')
8 url="http://www.phpcompiler.org/"
9 license=('BSD')
10 groups=()
11 depends=('php-embed')
12 makedepends=('boost' 'gc')
13 optdepends=('graphviz: to view graphical output (like syntax trees)' 
14 'xerces-c: support for XML parsing (not needed for XML unparsing)')
15 provides=('phc')
16 conflicts=()
17 replaces=()
18 backup=()
19 options=()
20 source=(http://phc.googlecode.com/files/$pkgname-$pkgver.tar.bz2)
21 noextract=()
22 md5sums=('0dff922b0e49caf243674e1b9fe38792')
24 build() {
25   cd $srcdir/$pkgname-$pkgver
26   LDFLAGS="" ./configure --prefix=/usr --with-php=/usr
27   make || return 1
28   make DESTDIR=$pkgdir install || return 1
29   mkdir -p $pkgdir/usr/share/licenses/$pkgname
30   cp doc/license/LICENSE $pkgdir/usr/share/licenses/$pkgname/COPYING