summaryrefslogtreecommitdiffstats
path: root/abs/core/libjpeg-turbo/PKGBUILD
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-08-07 14:58:41 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-08-07 14:58:41 (GMT)
commit76668fac6553e63240a40b14ad2944ed77e62790 (patch)
treee0a42f24d8554bb088268bc12db6649a0d3864c2 /abs/core/libjpeg-turbo/PKGBUILD
parent4db7cfc78678f7e763b8a58e62f656f419fcf6d1 (diff)
downloadlinhes_pkgbuild-76668fac6553e63240a40b14ad2944ed77e62790.zip
linhes_pkgbuild-76668fac6553e63240a40b14ad2944ed77e62790.tar.gz
linhes_pkgbuild-76668fac6553e63240a40b14ad2944ed77e62790.tar.bz2
libjpeg-turbo
-new
Diffstat (limited to 'abs/core/libjpeg-turbo/PKGBUILD')
-rw-r--r--abs/core/libjpeg-turbo/PKGBUILD56
1 files changed, 56 insertions, 0 deletions
diff --git a/abs/core/libjpeg-turbo/PKGBUILD b/abs/core/libjpeg-turbo/PKGBUILD
new file mode 100644
index 0000000..f882559
--- /dev/null
+++ b/abs/core/libjpeg-turbo/PKGBUILD
@@ -0,0 +1,56 @@
+# $Id: PKGBUILD 162914 2012-07-03 20:59:56Z eric $
+# Maintainer: Allan McRae <allan@archlinux.org>
+# Contributor: Simone Sclavi 'Ito' <darkhado@gmail.com>
+
+pkgname=libjpeg-turbo
+pkgver=1.2.1
+pkgrel=1
+pkgdesc="libjpeg derivative with accelerated baseline JPEG compression and decompression"
+arch=('i686' 'x86_64')
+url="http://libjpeg-turbo.virtualgl.org/"
+license=('GPL' 'custom')
+depends=('glibc')
+makedepends=('nasm')
+provides=('libjpeg=8.0.2')
+conflicts=('libjpeg')
+replaces=('libjpeg')
+options=('!libtool')
+source=(http://sourceforge.net/projects/$pkgname/files/$pkgver/$pkgname-$pkgver.tar.gz)
+sha1sums=('a4992e102c6d88146709e8e6ce5896d5d0b5a361')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ # put documentation in a reasonable directory...
+ sed -i "/docdir = /s#/doc#/doc/libjpeg-turbo#" Makefile.in
+ sed -i "/exampledir = /s#/doc#/doc/libjpeg-turbo#" Makefile.in
+
+ ./configure --prefix=/usr --with-jpeg8 --mandir=/usr/share/man
+ make
+}
+
+check() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ make test
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ make DESTDIR="$pkgdir/" install
+
+ # provide jpegint.h as it is required by various software
+ install -m644 jpegint.h "$pkgdir/usr/include/"
+
+ # do not distributre libturbojpeg as it is unversioned
+ rm "$pkgdir"/usr/lib/libturbojpeg.{so,a}
+ rm "$pkgdir/usr/include/turbojpeg.h"
+ rm "$pkgdir/usr/bin/tjbench"
+
+ install -dm755 "$pkgdir/usr/share/licenses/libjpeg-turbo/"
+ ln -s ../../doc/libjpeg-turbo/README \
+ "$pkgdir/usr/share/licenses/libjpeg-turbo/README"
+ ln -s ../../doc/libjpeg-turbo/README-turbo.txt \
+ "$pkgdir/usr/share/licenses/libjpeg-turbo/README-turbo.txt"
+}