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
2011-06-09 23:05:58 +00:00
2022-08-21 19:09:31 +00:00
_name = libjpeg-turbo
pkgname = $_name
pkgver = 2.1.4
2022-05-20 21:51:45 +00:00
pkgrel = 2
2022-02-27 00:05:02 +00:00
pkgdesc = "JPEG image codec with accelerated baseline compression and decompression"
url = "https://libjpeg-turbo.org/"
2022-08-21 19:09:31 +00:00
arch = ( x86_64)
2021-11-20 20:02:02 +00:00
license = ( BSD)
depends = ( glibc)
2022-08-21 19:09:31 +00:00
makedepends = ( cmake ninja)
2021-11-20 20:02:02 +00:00
provides = ( libjpeg libjpeg.so libturbojpeg.so)
2022-02-27 00:05:02 +00:00
options = ( debug)
2022-08-21 19:09:31 +00:00
source = ( https://sourceforge.net/projects/$_name /files/$pkgver /$_name -$pkgver .tar.gz{ ,.sig} )
sha512sums = ( '511f065767c022da06b6c36299686fa44f83441646f7e33b766c6cfab03f91b0e6bfa456962184071dadaed4057ba9a29cba685383f3eb86a4370a1a53731a70'
2020-11-21 17:27:14 +00:00
'SKIP' )
2022-08-21 19:09:31 +00:00
b2sums = ( '80ffd77d58a37eae0bdc1868d994f34ea52c13e2624c720b1d0b6ec4d6d14b16911163ccd4009c8d6eda214f31e1fff78bb7eb4739ae6589d0fd8c7008c0e972'
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( ) {
2022-08-21 19:09:31 +00:00
cmake -S $_name -$pkgver -B build -G Ninja \
-DCMAKE_INSTALL_PREFIX= /usr \
2020-10-18 19:39:30 +00:00
-DCMAKE_INSTALL_LIBDIR= /usr/lib \
2021-11-20 20:02:02 +00:00
-DCMAKE_BUILD_TYPE= None \
2022-05-20 21:51:45 +00:00
-DENABLE_STATIC= OFF \
2020-10-18 19:39:30 +00:00
-DWITH_JAVA= OFF \
-DWITH_JPEG8= ON \
-W no-dev \
2022-02-27 00:05:02 +00:00
-B build \
2022-08-21 19:09:31 +00:00
-S $_name -$pkgver
cmake --build build -v
2012-02-12 17:44:45 +00:00
}
check( ) {
2022-08-21 19:09:31 +00:00
cd build
ctest --output-on-failure --stop-on-failure -j$( nproc)
2011-06-09 23:05:58 +00:00
}
package( ) {
2022-08-21 19:09:31 +00:00
DESTDIR = " $pkgdir " cmake --install build -v
2020-10-18 19:39:30 +00:00
2022-08-21 19:09:31 +00:00
# header required by some dependents
2020-10-18 19:39:30 +00:00
# https://bugs.archlinux.org/task/24787
2022-08-21 19:09:31 +00:00
install -vDm 644 $_name -$pkgver /jpegint.h " $pkgdir /usr/include "
install -vDm 644 $_name -$pkgver /LICENSE.md -t " $pkgdir /usr/share/licenses/ $pkgname "
2011-06-09 23:05:58 +00:00
}