updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / libjpeg-turbo-svn / PKGBUILD
blob71bb19d7022542c2575442fd113221844db21b29
1 # Maintainer: Simone Sclavi 'Ito' <darkhado@gmail.com>
2 # Contributor: Ross Melin <rdmelin@yahoo.com>
4 pkgname=libjpeg-turbo-svn
5 pkgver=733
6 pkgrel=1
7 pkgdesc="A derivative of libjpeg which uses SIMD instructions to accelerate baseline JPEG compression and decompression"
8 arch=('i686' 'x86_64')
9 url="http://libjpeg-turbo.virtualgl.org/"
10 license=('GPL' 'custom')
11 makedepends=('subversion' 'nasm')
12 provides=('libjpeg-turbo' 'libjpeg=8')
13 conflicts=('libjpeg-turbo')
14 options=('!libtool')
15 depends=('glibc')
16 source=('LICENSE')
17 md5sums=('8b3f4d426b97ea335b053353f9f220b2') 
18 _svntrunk=https://libjpeg-turbo.svn.sourceforge.net/svnroot/libjpeg-turbo/trunk
19 _svnmod=libjpeg-turbo
21 build() {
22   if [ -d $_svnmod/.svn ]; then
23     (cd $_svnmod && svn up -r $pkgver)
24   else
25     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
26   fi
28   msg "SVN checkout done or server timeout"
29   msg "Starting make..."
31   rm -rf $_svnmod-build
32   cp -r $_svnmod $_svnmod-build
33   cd $_svnmod-build
35   # BUILD
36   autoreconf -fiv
37   ./configure --with-jpeg8 --prefix=/usr
38   make
40 package() {
41   install -Dm644 LICENSE $pkgdir/usr/share/licenses/${pkgname}/LICENSE
42   cd $_svnmod-build
43   make DESTDIR="$pkgdir/" install