extra/libjpeg-turbo to 1.2.1-1

This commit is contained in:
Kevin Mihelich 2012-07-04 12:33:45 -04:00
parent b59a9e7522
commit 2846d9ec9c

View file

@ -9,8 +9,8 @@
plugrel=1 plugrel=1
pkgname=libjpeg-turbo pkgname=libjpeg-turbo
pkgver=1.2.0 pkgver=1.2.1
pkgrel=2 pkgrel=1
pkgdesc="libjpeg derivative with accelerated baseline JPEG compression and decompression" pkgdesc="libjpeg derivative with accelerated baseline JPEG compression and decompression"
arch=('i686' 'x86_64') arch=('i686' 'x86_64')
url="http://libjpeg-turbo.virtualgl.org/" url="http://libjpeg-turbo.virtualgl.org/"
@ -22,10 +22,10 @@ conflicts=('libjpeg')
replaces=('libjpeg') replaces=('libjpeg')
options=('!libtool') options=('!libtool')
source=(http://sourceforge.net/projects/$pkgname/files/$pkgver/$pkgname-$pkgver.tar.gz) source=(http://sourceforge.net/projects/$pkgname/files/$pkgver/$pkgname-$pkgver.tar.gz)
md5sums=('5329fa80953938cb4f097afae55059e2') sha1sums=('a4992e102c6d88146709e8e6ce5896d5d0b5a361')
build() { build() {
cd $srcdir/$pkgname-$pkgver cd "$srcdir/$pkgname-$pkgver"
# put documentation in a reasonable directory... # put documentation in a reasonable directory...
sed -i "/docdir = /s#/doc#/doc/libjpeg-turbo#" Makefile.in sed -i "/docdir = /s#/doc#/doc/libjpeg-turbo#" Makefile.in
@ -36,27 +36,27 @@ build() {
} }
check() { check() {
cd $srcdir/$pkgname-$pkgver cd "$srcdir/$pkgname-$pkgver"
make test make test
} }
package() { package() {
cd $srcdir/$pkgname-$pkgver cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir/" install
make DESTDIR=$pkgdir/ install
# provide jpegint.h as it is required by various software # provide jpegint.h as it is required by various software
install -m644 jpegint.h $pkgdir/usr/include/ install -m644 jpegint.h "$pkgdir/usr/include/"
# do not distributre libturbojpeg as it is unversioned # do not distributre libturbojpeg as it is unversioned
rm $pkgdir/usr/lib/libturbojpeg.{so,a} rm "$pkgdir"/usr/lib/libturbojpeg.{so,a}
rm $pkgdir/usr/include/turbojpeg.h rm "$pkgdir/usr/include/turbojpeg.h"
rm $pkgdir/usr/bin/tjbench rm "$pkgdir/usr/bin/tjbench"
install -dm755 $pkgdir/usr/share/licenses/libjpeg-turbo/ install -dm755 "$pkgdir/usr/share/licenses/libjpeg-turbo/"
ln -s ../../doc/libjpeg-turbo/README \ ln -s ../../doc/libjpeg-turbo/README \
$pkgdir/usr/share/licenses/libjpeg-turbo/README "$pkgdir/usr/share/licenses/libjpeg-turbo/README"
ln -s ../../doc/libjpeg-turbo/README-turbo.txt \ ln -s ../../doc/libjpeg-turbo/README-turbo.txt \
$pkgdir/usr/share/licenses/libjpeg-turbo/README-turbo.txt "$pkgdir/usr/share/licenses/libjpeg-turbo/README-turbo.txt"
} }