PKGBUILDs/extra/libjpeg-turbo/PKGBUILD

55 lines
1.5 KiB
Bash
Raw Normal View History

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
pkgname=libjpeg-turbo
2015-10-08 13:34:30 +00:00
pkgver=1.4.2
2015-12-06 00:55:38 +00:00
pkgrel=2
2013-10-22 06:34:38 +00:00
pkgdesc='JPEG image codec with accelerated baseline compression and decompression'
url='http://libjpeg-turbo.virtualgl.org/'
arch=('i686' 'x86_64')
2015-10-08 13:34:30 +00:00
license=('custom')
2015-12-06 00:55:38 +00:00
makedepends=('jdk8-openjdk')
2015-01-10 01:30:49 +00:00
source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
2015-10-08 13:34:30 +00:00
sha1sums=('2666158ccd5318513f875867bbc4af52f6eb9f0b')
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
2015-12-06 00:55:38 +00:00
options=('!makeflags')
build() {
2013-10-22 06:34:38 +00:00
cd "${srcdir}/${pkgname}-${pkgver}"
2015-12-06 00:55:38 +00:00
export JNI_CFLAGS='-I/usr/lib/jvm/default/include -I/usr/lib/jvm/default/include/linux'
./configure \
--prefix=/usr \
--mandir=/usr/share/man \
--with-jpeg8 \
--with-java \
2013-10-22 06:34:38 +00:00
make
2012-02-12 17:44:45 +00:00
}
check() {
2013-10-22 06:34:38 +00:00
cd "${srcdir}/${pkgname}-${pkgver}"
make test
}
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
}