2013-10-22 06:34:38 +00:00
|
|
|
# $Id$
|
|
|
|
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
|
|
|
|
# Contributor: Allan McRae <allan@archlinux.org>
|
2012-02-12 17:44:45 +00:00
|
|
|
# Contributor: Simone Sclavi 'Ito' <darkhado@gmail.com>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - removed makedepends on nasm
|
2013-10-22 06:34:38 +00:00
|
|
|
# - added --without-simd to configure, no NEON
|
2011-06-09 23:05:58 +00:00
|
|
|
|
|
|
|
pkgname=libjpeg-turbo
|
2014-04-10 17:48:57 +00:00
|
|
|
pkgver=1.3.1
|
2014-11-27 17:56:43 +00:00
|
|
|
pkgrel=3
|
2013-10-22 06:34:38 +00:00
|
|
|
pkgdesc='JPEG image codec with accelerated baseline compression and decompression'
|
|
|
|
url='http://libjpeg-turbo.virtualgl.org/'
|
2012-02-12 17:44:45 +00:00
|
|
|
license=('GPL' 'custom')
|
2013-10-22 06:34:38 +00:00
|
|
|
arch=('i686' 'x86_64')
|
2014-11-12 16:46:42 +00:00
|
|
|
source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz"
|
2014-11-27 17:56:43 +00:00
|
|
|
'jstdhuff.patch'
|
|
|
|
'overrun.patch')
|
2014-11-12 16:46:42 +00:00
|
|
|
sha1sums=('5fa19252e5ca992cfa40446a0210ceff55fbe468'
|
2014-11-27 17:56:43 +00:00
|
|
|
'f459890257df430dc4e2d8bd3060173a1be7516e'
|
|
|
|
'438aba2241b19857bab090c6f61bd3f249f27591')
|
2013-05-26 22:33:55 +00:00
|
|
|
provides=('libjpeg=8.0.2' 'turbojpeg')
|
|
|
|
conflicts=('libjpeg' 'turbojpeg')
|
|
|
|
replaces=('libjpeg' 'turbojpeg')
|
2013-12-11 05:58:24 +00:00
|
|
|
|
2014-11-12 16:46:42 +00:00
|
|
|
prepare() {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
2014-11-27 17:56:43 +00:00
|
|
|
patch -p0 -i ../jstdhuff.patch # FS#42747
|
|
|
|
patch -p1 -i ../overrun.patch # FS#42922
|
2014-11-12 16:46:42 +00:00
|
|
|
}
|
|
|
|
|
2011-06-09 23:05:58 +00:00
|
|
|
build() {
|
2013-10-22 06:34:38 +00:00
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
./configure --prefix=/usr --with-jpeg8 --mandir=/usr/share/man --without-simd
|
|
|
|
make
|
2012-02-12 17:44:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
2013-10-22 06:34:38 +00:00
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
make test
|
2011-06-09 23:05:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2013-10-22 06:34:38 +00:00
|
|
|
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
|
2011-06-09 23:05:58 +00:00
|
|
|
}
|