1 packager="slaveriq <arch@plassmann.biz>"
5 pkgdesc="XHP is a PHP extension which augments the syntax of the language such that XML document fragments become valid PHP expressions."
7 url="http://github.com/facebook/xhp"
12 _gitroot="git://github.com/facebook/xhp.git"
17 msg "Connecting to GIT server...."
19 if [ -d $_gitname ] ; then
20 cd $_gitname && git pull origin
21 msg "The local files are updated."
23 git clone $_gitroot $_gitname
26 msg "GIT checkout done or server timeout"
27 msg "Starting make..."
29 rm -rf "$srcdir/$_gitname-build"
30 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
31 cd "$srcdir/$_gitname-build"
37 find -name 'Makefile' -exec sed -i'' -e's/local\///' {} \;
41 sudo make DESTDIR="$pkgdir/" install