PKGBUILDs/aur/hubbub-svn/PKGBUILD
2011-06-16 15:04:10 +02:00

36 lines
854 B
Bash

# Contributor: Alexander Rødseth <rodseth@gmail.com>
pkgname=hubbub-svn
pkgver=12160
pkgrel=1
plugrel=1
pkgdesc="An HTML5 compliant parsing library"
arch=('arm' 'i686' 'x86_64')
url="http://www.netsurf-browser.org/projects/hubbub/"
license=('MIT')
depends=('libparserutils')
makedepends=('subversion')
provides=('hubbub')
conflics=('hubbub')
_svntrunk=svn://svn.netsurf-browser.org/trunk/hubbub
_svnmod=hubbub
build() {
cd "$srcdir"
if [ -d $_svnmod/.svn ]; then
(cd $_svnmod && svn up -r $pkgver)
else
svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
fi
msg "SVN checkout done or server timeout"
cd $_svnmod
sed -i "s/-Werror//g" $srcdir/$_svnmod/Makefile
make || return 1
make PREFIX="/usr" DESTDIR="$pkgdir/" install
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}
# vim:set ts=2 sw=2 et: