mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
60 lines
1.6 KiB
Bash
60 lines
1.6 KiB
Bash
# 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, -DWITH_JAVA=0
|
|
# - added -DWITH_SIMD=FALSE to configure for !AArch64
|
|
|
|
pkgname=libjpeg-turbo
|
|
pkgver=2.0.5
|
|
pkgrel=1
|
|
pkgdesc='JPEG image codec with accelerated baseline compression and decompression'
|
|
url='https://libjpeg-turbo.org/'
|
|
arch=('x86_64')
|
|
license=('custom')
|
|
makedepends=('cmake')
|
|
validpgpkeys=('7D6293CC6378786E1B5C496885C7044E033FDE16')
|
|
source=("https://downloads.sourceforge.net/project/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz"{,.sig})
|
|
sha256sums=('16f8f6f2715b3a38ab562a84357c793dd56ae9899ce130563c72cd93d8357b5d'
|
|
'SKIP')
|
|
|
|
provides=('libjpeg=8.2.2')
|
|
|
|
prepare() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
sed 's/Szathmáry/Szathmary/g' -i java/org/libjpegturbo/turbojpeg/*.java
|
|
}
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
[[ $CARCH != "aarch64" ]] && CONFIG="-DWITH_SIMD=FALSE"
|
|
|
|
cmake \
|
|
-DWITH_JAVA=0 \
|
|
-DWITH_JPEG8=1 \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
|
|
$CONFIG .
|
|
|
|
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/${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
|
|
}
|