summaryrefslogtreecommitdiff
path: root/extra/libjpeg-turbo/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/libjpeg-turbo/PKGBUILD')
-rw-r--r--extra/libjpeg-turbo/PKGBUILD52
1 files changed, 25 insertions, 27 deletions
diff --git a/extra/libjpeg-turbo/PKGBUILD b/extra/libjpeg-turbo/PKGBUILD
index 306bd875e..4690791fb 100644
--- a/extra/libjpeg-turbo/PKGBUILD
+++ b/extra/libjpeg-turbo/PKGBUILD
@@ -1,45 +1,43 @@
-# $Id: PKGBUILD 186466 2013-05-26 22:08:45Z eric $
-# Maintainer: Allan McRae <allan@archlinux.org>
+# $Id: PKGBUILD 198190 2013-10-30 13:21:13Z allan $
+# Maintainer: Gaetan Bisson <bisson@archlinux.org>
+# Contributor: Allan McRae <allan@archlinux.org>
# Contributor: Simone Sclavi 'Ito' <darkhado@gmail.com>
pkgname=libjpeg-turbo
pkgver=1.3.0
-pkgrel=2
-pkgdesc="libjpeg derivative with accelerated baseline JPEG compression and decompression"
-arch=('i686' 'x86_64' 'mips64el')
-url="http://libjpeg-turbo.virtualgl.org/"
+pkgrel=3
+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' 'mips64el')
makedepends=('nasm')
+source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha1sums=('1792c964b35604cebd3a8846f1ca6de5976e9c28')
+
provides=('libjpeg=8.0.2' 'turbojpeg')
conflicts=('libjpeg' 'turbojpeg')
replaces=('libjpeg' 'turbojpeg')
-options=('!libtool')
-source=(http://sourceforge.net/projects/$pkgname/files/$pkgver/$pkgname-$pkgver.tar.gz)
-sha1sums=('1792c964b35604cebd3a8846f1ca6de5976e9c28')
build() {
- cd $pkgname-$pkgver
- ./configure --prefix=/usr --with-jpeg8 --mandir=/usr/share/man
- make
+ 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 $pkgname-$pkgver
- make DESTDIR="$pkgdir/" docdir=/usr/share/doc/libjpeg-turbo \
- exampledir=/usr/share/doc/libjpeg-turbo install
-
- # provide jpegint.h as it is required by various software
- install -m644 jpegint.h "$pkgdir/usr/include/"
-
- 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
}