mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
39 lines
948 B
Bash
39 lines
948 B
Bash
# Contributor: Alexander Rødseth <rodseth@gmail.com>
|
|
pkgname=libnsgif-svn
|
|
pkgver=12168
|
|
pkgrel=1
|
|
plugrel=1
|
|
pkgdesc="A library for decoding the GIF image format"
|
|
arch=('arm' 'i686' 'x86_64')
|
|
url="http://www.netsurf-browser.org/projects/libnsgif/"
|
|
license=('MIT')
|
|
makedepends=('subversion')
|
|
provides=('libnsgif')
|
|
conflicts=('libnsgif')
|
|
_svntrunk=svn://svn.netsurf-browser.org/trunk/libnsgif
|
|
_svnmod=libnsgif
|
|
|
|
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
|
|
|
|
# Turn off strict aliasing for now
|
|
cat Makefile | sed 's/-pedantic/-pedantic -fno-strict-aliasing/g' > Makefile.tmp
|
|
mv Makefile.tmp 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:
|