PKGBUILDs/aur/libcss-svn/PKGBUILD

44 lines
953 B
Bash
Raw Normal View History

2011-06-16 13:04:10 +00:00
# Maintainer: Alexander R<>dseth <rodseth@gmail.com>
2012-04-15 16:45:07 +00:00
plugrel=1
2011-06-16 13:04:10 +00:00
pkgname=libcss-svn
2012-04-15 16:45:07 +00:00
pkgver=13772
2011-06-16 13:04:10 +00:00
pkgrel=1
2012-04-15 16:45:07 +00:00
pkgdesc="CSS parser and selection engine"
arch=('any')
2011-06-16 13:04:10 +00:00
url="http://www.netsurf-browser.org/projects/libcss/"
license=('MIT')
2012-04-15 16:45:07 +00:00
depends=('libparserutils>=0.1.0' 'libwapcaplet-svn>=13777')
2011-06-16 13:04:10 +00:00
makedepends=('subversion')
2012-04-15 16:45:07 +00:00
provides=('libcss=0.0.3')
conflicts=('libcss')
2011-06-16 13:04:10 +00:00
_svntrunk=svn://svn.netsurf-browser.org/trunk/libcss
_svnmod=libcss
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"
2012-04-15 16:45:07 +00:00
msg2 "Compiling..."
export CFLAGS="-Wno-unused-but-set-variable"
2011-06-16 13:04:10 +00:00
make
2012-04-15 16:45:07 +00:00
}
2011-06-16 13:04:10 +00:00
2012-04-15 16:45:07 +00:00
package() {
cd "$srcdir/$_svnmod"
make PREFIX="/usr" DESTDIR="$pkgdir/" install
2011-06-16 13:04:10 +00:00
msg2 "Packaging license..."
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}
# vim:set ts=2 sw=2 et: