mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
39 lines
880 B
Bash
39 lines
880 B
Bash
|
# Maintainer: Alexander R<>dseth <rodseth@gmail.com>
|
|||
|
pkgname=libcss-svn
|
|||
|
pkgver=12446
|
|||
|
pkgrel=1
|
|||
|
plugrel=1
|
|||
|
pkgdesc="A CSS parser and selection engine"
|
|||
|
arch=('arm' 'i686' 'x86_64')
|
|||
|
url="http://www.netsurf-browser.org/projects/libcss/"
|
|||
|
license=('MIT')
|
|||
|
depends=('libparserutils-svn' 'libwapcaplet-svn')
|
|||
|
makedepends=('subversion')
|
|||
|
provides=('libcss')
|
|||
|
_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"
|
|||
|
|
|||
|
msg2 "Building..."
|
|||
|
sed -i "s/-Werror//g" Makefile
|
|||
|
make
|
|||
|
make PREFIX="/usr" DESTDIR="$pkgdir/" install
|
|||
|
|
|||
|
msg2 "Packaging license..."
|
|||
|
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
|
|||
|
}
|
|||
|
|
|||
|
# vim:set ts=2 sw=2 et:
|