From 5095db5489b514be38266e8a1722d430e4573865 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Mon, 5 May 2014 19:33:29 +0000 Subject: libjpeg-turbo: update to 1.3.1 --- abs/core/libjpeg-turbo/PKGBUILD | 69 +++++++++++++++++------------------------ 1 file changed, 28 insertions(+), 41 deletions(-) diff --git a/abs/core/libjpeg-turbo/PKGBUILD b/abs/core/libjpeg-turbo/PKGBUILD index f882559..65f5bc4 100644 --- a/abs/core/libjpeg-turbo/PKGBUILD +++ b/abs/core/libjpeg-turbo/PKGBUILD @@ -1,56 +1,43 @@ -# $Id: PKGBUILD 162914 2012-07-03 20:59:56Z eric $ -# Maintainer: Allan McRae +# $Id$ +# Maintainer: Gaetan Bisson +# Contributor: Allan McRae # Contributor: Simone Sclavi 'Ito' pkgname=libjpeg-turbo -pkgver=1.2.1 +pkgver=1.3.1 pkgrel=1 -pkgdesc="libjpeg derivative with accelerated baseline JPEG compression and decompression" -arch=('i686' 'x86_64') -url="http://libjpeg-turbo.virtualgl.org/" +pkgdesc='JPEG image codec with accelerated baseline compression and decompression' +url='http://libjpeg-turbo.virtualgl.org/' license=('GPL' 'custom') -depends=('glibc') +arch=('i686' 'x86_64') 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" +source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz") +sha1sums=('5fa19252e5ca992cfa40446a0210ceff55fbe468') - # 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 +provides=('libjpeg=8.0.2' 'turbojpeg') +conflicts=('libjpeg' 'turbojpeg') +replaces=('libjpeg' 'turbojpeg') - ./configure --prefix=/usr --with-jpeg8 --mandir=/usr/share/man - make +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + ./configure --prefix=/usr --with-jpeg8 --mandir=/usr/share/man + make } check() { - cd "$srcdir/$pkgname-$pkgver" - - make test + 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" + cd "${srcdir}/${pkgname}-${pkgver}" + make \ + DESTDIR="${pkgdir}" \ + docdir="/usr/share/doc/${pkgname}" \ + exampledir="/usr/share/doc/${pkgname}" \ + install + + install -d "${pkgdir}/usr/share/licenses/libjpeg-turbo" + ln -t "${pkgdir}/usr/share/licenses/libjpeg-turbo" -s ../../doc/libjpeg-turbo/README{,-turbo.txt} + install -m644 jpegint.h "${pkgdir}/usr/include" # required by other software } -- cgit v0.12