PKGBUILDs/extra/libjpeg-turbo/PKGBUILD

63 lines
1.8 KiB
Bash
Raw Normal View History

2012-02-12 17:44:45 +00:00
# $Id: PKGBUILD 149986 2012-02-12 02:54:27Z allan $
# Maintainer: Allan McRae <allan@archlinux.org>
# Contributor: Simone Sclavi 'Ito' <darkhado@gmail.com>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - removed makedepends on nasm
# - added --without-simd to configure, no NEON in main repositories yet
plugrel=1
pkgname=libjpeg-turbo
2012-07-04 16:33:45 +00:00
pkgver=1.2.1
pkgrel=1
2012-02-12 17:44:45 +00:00
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)
2012-07-04 16:33:45 +00:00
sha1sums=('a4992e102c6d88146709e8e6ce5896d5d0b5a361')
build() {
2012-07-04 16:33:45 +00:00
cd "$srcdir/$pkgname-$pkgver"
2012-02-12 17:44:45 +00:00
# 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 --without-simd
make
}
check() {
2012-07-04 16:33:45 +00:00
cd "$srcdir/$pkgname-$pkgver"
2012-02-12 17:44:45 +00:00
make test
}
package() {
2012-07-04 16:33:45 +00:00
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir/" install
2012-02-12 17:44:45 +00:00
# provide jpegint.h as it is required by various software
2012-07-04 16:33:45 +00:00
install -m644 jpegint.h "$pkgdir/usr/include/"
2012-02-12 17:44:45 +00:00
# do not distributre libturbojpeg as it is unversioned
2012-07-04 16:33:45 +00:00
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/"
2012-02-12 17:44:45 +00:00
ln -s ../../doc/libjpeg-turbo/README \
2012-07-04 16:33:45 +00:00
"$pkgdir/usr/share/licenses/libjpeg-turbo/README"
2012-02-12 17:44:45 +00:00
ln -s ../../doc/libjpeg-turbo/README-turbo.txt \
2012-07-04 16:33:45 +00:00
"$pkgdir/usr/share/licenses/libjpeg-turbo/README-turbo.txt"
}