mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
59 lines
1.6 KiB
Bash
59 lines
1.6 KiB
Bash
# $Id$
|
|
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
|
|
# Contributor: Allan McRae <allan@archlinux.org>
|
|
# Contributor: Simone Sclavi 'Ito' <darkhado@gmail.com>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - removed makedepends on nasm and java
|
|
# - added --without-simd to configure, no NEON
|
|
|
|
pkgname=libjpeg-turbo
|
|
pkgver=1.5.1
|
|
pkgrel=1
|
|
pkgdesc='JPEG image codec with accelerated baseline compression and decompression'
|
|
url='http://libjpeg-turbo.virtualgl.org/'
|
|
arch=('i686' 'x86_64')
|
|
license=('custom')
|
|
#makedepends=('jdk8-openjdk')
|
|
source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
|
|
sha1sums=('ebb3f9e94044c77831a3e8c809c7ea7506944622')
|
|
|
|
provides=('libjpeg=8.1.2' 'turbojpeg')
|
|
conflicts=('libjpeg' 'turbojpeg')
|
|
replaces=('libjpeg' 'turbojpeg')
|
|
|
|
options=('!makeflags')
|
|
|
|
prepare() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
sed 's/Szathmáry/Szathmary/g' -i java/org/libjpegturbo/turbojpeg/*.java
|
|
}
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
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 \
|
|
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
make test
|
|
}
|
|
|
|
package() {
|
|
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
|
|
}
|