diff options
author | Britney Fransen <brfransen@gmail.com> | 2014-05-05 19:33:29 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2014-05-05 19:33:29 (GMT) |
commit | 5095db5489b514be38266e8a1722d430e4573865 (patch) | |
tree | 1993112136f83d1789b89639ff60fad09757f530 /abs/core/libjpeg-turbo | |
parent | 1d696ceb329c5f6e5d78f1a364c70b234a3d3f43 (diff) | |
download | linhes_pkgbuild-5095db5489b514be38266e8a1722d430e4573865.zip linhes_pkgbuild-5095db5489b514be38266e8a1722d430e4573865.tar.gz linhes_pkgbuild-5095db5489b514be38266e8a1722d430e4573865.tar.bz2 |
libjpeg-turbo: update to 1.3.1
Diffstat (limited to 'abs/core/libjpeg-turbo')
-rw-r--r-- | abs/core/libjpeg-turbo/PKGBUILD | 69 |
1 files 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 <allan@archlinux.org> +# $Id$ +# Maintainer: Gaetan Bisson <bisson@archlinux.org> +# Contributor: Allan McRae <allan@archlinux.org> # Contributor: Simone Sclavi 'Ito' <darkhado@gmail.com> 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 } |