PKGBUILDs/extra/libjpeg-turbo/PKGBUILD

61 lines
1.6 KiB
Bash
Raw Normal View History

2013-10-22 06:34:38 +00:00
# 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>
2018-09-04 12:38:06 +00:00
# - removed makedepends on nasm and java, -DWITH_JAVA=0
# - added -DWITH_SIMD=FALSE to configure for !AArch64
pkgname=libjpeg-turbo
2020-06-25 00:30:30 +00:00
pkgver=2.0.5
2020-08-30 17:38:54 +00:00
pkgrel=2
2013-10-22 06:34:38 +00:00
pkgdesc='JPEG image codec with accelerated baseline compression and decompression'
2017-11-24 21:36:31 +00:00
url='https://libjpeg-turbo.org/'
arch=('x86_64')
2015-10-08 13:34:30 +00:00
license=('custom')
2018-09-04 12:38:06 +00:00
makedepends=('cmake')
2017-07-13 12:54:21 +00:00
validpgpkeys=('7D6293CC6378786E1B5C496885C7044E033FDE16')
2017-11-24 21:36:31 +00:00
source=("https://downloads.sourceforge.net/project/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz"{,.sig})
2020-06-25 00:30:30 +00:00
sha256sums=('16f8f6f2715b3a38ab562a84357c793dd56ae9899ce130563c72cd93d8357b5d'
2017-07-13 12:54:21 +00:00
'SKIP')
2016-06-12 19:32:50 +00:00
2018-09-04 12:38:06 +00:00
provides=('libjpeg=8.2.2')
2013-12-11 05:58:24 +00:00
2016-06-12 19:32:50 +00:00
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
sed 's/Szathmáry/Szathmary/g' -i java/org/libjpegturbo/turbojpeg/*.java
}
build() {
2013-10-22 06:34:38 +00:00
cd "${srcdir}/${pkgname}-${pkgver}"
2017-12-21 00:00:32 +00:00
2018-09-04 12:38:06 +00:00
[[ $CARCH != "aarch64" ]] && CONFIG="-DWITH_SIMD=FALSE"
2017-12-21 00:00:32 +00:00
2018-09-04 12:38:06 +00:00
cmake \
-DWITH_JAVA=0 \
-DWITH_JPEG8=1 \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
$CONFIG .
2015-12-06 00:55:38 +00:00
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
2017-07-13 12:54:21 +00:00
2017-12-21 00:00:32 +00:00
install -d "${pkgdir}/usr/share/licenses/${pkgname}"
ln -s ../../doc/libjpeg-turbo/LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}"
install -m 644 jpegint.h "${pkgdir}/usr/include" # required by other software
}