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
|
2011-06-09 23:05:58 +00:00
|
|
|
|
|
|
|
plugrel=1
|
|
|
|
|
|
|
|
pkgname=libjpeg-turbo
|
2013-05-26 22:33:55 +00:00
|
|
|
pkgver=1.3.0
|
|
|
|
pkgrel=2
|
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')
|
2013-05-26 22:33:55 +00:00
|
|
|
provides=('libjpeg=8.0.2' 'turbojpeg')
|
|
|
|
conflicts=('libjpeg' 'turbojpeg')
|
|
|
|
replaces=('libjpeg' 'turbojpeg')
|
2012-02-12 17:44:45 +00:00
|
|
|
options=('!libtool')
|
|
|
|
source=(http://sourceforge.net/projects/$pkgname/files/$pkgver/$pkgname-$pkgver.tar.gz)
|
2013-05-26 22:33:55 +00:00
|
|
|
sha1sums=('1792c964b35604cebd3a8846f1ca6de5976e9c28')
|
2011-06-09 23:05:58 +00:00
|
|
|
|
|
|
|
build() {
|
2013-05-26 22:33:55 +00:00
|
|
|
cd $pkgname-$pkgver
|
2012-02-12 17:44:45 +00:00
|
|
|
./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
|
2011-06-09 23:05:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2013-05-26 22:33:55 +00:00
|
|
|
cd $pkgname-$pkgver
|
|
|
|
make DESTDIR="$pkgdir/" docdir=/usr/share/doc/libjpeg-turbo \
|
|
|
|
exampledir=/usr/share/doc/libjpeg-turbo 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/"
|
2013-05-26 22:33:55 +00:00
|
|
|
|
2012-07-04 16:33:45 +00:00
|
|
|
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"
|
2011-06-09 23:05:58 +00:00
|
|
|
}
|