blob: 4c234fa7276711fc22dc6d1797718663a9fb2e55 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# $Id: PKGBUILD 158594 2012-05-05 02:02:44Z allan $
# Maintainer: Allan McRae <allan@archlinux.org>
# Contributor: Simone Sclavi 'Ito' <darkhado@gmail.com>
pkgname=libjpeg-turbo
pkgver=1.2.0
pkgrel=2
pkgdesc="libjpeg derivative with accelerated baseline JPEG compression and decompression"
arch=('i686' 'x86_64' 'mips64el')
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)
md5sums=('5329fa80953938cb4f097afae55059e2')
build() {
cd $srcdir/$pkgname-$pkgver
# 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
make
}
check() {
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
}
|