2020-10-18 19:39:30 +00:00
# Maintainer: David Runge <dvzrv@archlinux.org>
# Contributor: Gaetan Bisson <bisson@archlinux.org>
2013-10-22 06:34:38 +00:00
# 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>
2020-10-18 19:39:30 +00:00
# - removed makedepends on nasm and java, -DWITH_JAVA=OFF
2018-09-04 12:38:06 +00:00
# - added -DWITH_SIMD=FALSE to configure for !AArch64
2011-06-09 23:05:58 +00:00
pkgname = libjpeg-turbo
2021-08-10 12:35:35 +00:00
pkgver = 2.1.1
2020-11-21 17:27:14 +00:00
pkgrel = 1
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' )
2020-10-18 19:39:30 +00:00
license = ( 'BSD' )
depends = ( 'glibc' )
2018-09-04 12:38:06 +00:00
makedepends = ( 'cmake' )
2020-11-21 17:27:14 +00:00
provides = ( 'libjpeg' 'libjpeg.so' 'libturbojpeg.so' )
source = ( " https://sourceforge.net/projects/ ${ pkgname } /files/ ${ pkgver } / ${ pkgname } - ${ pkgver } .tar.gz " { ,.sig} )
2021-08-10 12:35:35 +00:00
sha512sums = ( '9cf61b4677b38e254063248a3fdbe138634d23a35ae8f2ee2661bdb3248b1d0500bd43201b8d9fe66c779d578074fd9ed19bc097ba22e10143530c2a19738673'
2020-11-21 17:27:14 +00:00
'SKIP' )
2021-08-10 12:35:35 +00:00
b2sums = ( 'ad3fc108e0136220586cc59a277735d573a82d740146d2ac091cbb50af84019b7c623ca1c9c2e6e0f8a672b6fde7ed23441b199eef2435a52013abd73a3a7157'
2020-11-21 17:27:14 +00:00
'SKIP' )
validpgpkeys = ( '0338C8D8D9FDA62CF9C421BD7EC2DBB6F4DBF434' ) # The libjpeg-turbo Project (Signing key for official binaries) <information@libjpeg-turbo.org>
2016-06-12 19:32:50 +00:00
2011-06-09 23:05:58 +00:00
build( ) {
2020-10-18 19:39:30 +00:00
cd " ${ pkgname } - ${ pkgver } "
[ [ $CARCH != "aarch64" ] ] && CONFIG = "-DWITH_SIMD=FALSE"
cmake -DCMAKE_INSTALL_PREFIX= /usr \
-DCMAKE_INSTALL_LIBDIR= /usr/lib \
2020-11-21 17:27:14 +00:00
-DCMAKE_BUILD_TYPE= 'None' \
2020-10-18 19:39:30 +00:00
-DWITH_JAVA= OFF \
-DWITH_JPEG8= ON \
-W no-dev \
-B build $CONFIG \
-S .
make VERBOSE = 1 -C build
2012-02-12 17:44:45 +00:00
}
check( ) {
2020-10-18 19:39:30 +00:00
cd " ${ pkgname } - ${ pkgver } "
make test -C build
2011-06-09 23:05:58 +00:00
}
package( ) {
2020-10-18 19:39:30 +00:00
cd " ${ pkgname } - ${ pkgver } "
make VERBOSE = 1 DESTDIR = " ${ pkgdir } " \
docdir = " /usr/share/doc/ ${ pkgname } " \
exampledir = " /usr/share/doc/ ${ pkgname } " \
install -C build
install -d " ${ pkgdir } /usr/share/licenses/ ${ pkgname } "
2020-11-21 17:27:14 +00:00
ln -s ../../doc/${ pkgname } /LICENSE.md " ${ pkgdir } /usr/share/licenses/ ${ pkgname } "
2020-10-18 19:39:30 +00:00
# header required by some dependants
# https://bugs.archlinux.org/task/24787
install -m 644 jpegint.h " ${ pkgdir } /usr/include "
2011-06-09 23:05:58 +00:00
}