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
pkgname = libjpeg-turbo
2022-02-27 00:05:02 +00:00
pkgver = 2.1.3
2020-11-21 17:27:14 +00:00
pkgrel = 1
2022-02-27 00:05:02 +00:00
pkgdesc = "JPEG image codec with accelerated baseline compression and decompression"
2021-11-20 20:02:02 +00:00
arch = ( x86_64)
2022-02-27 00:05:02 +00:00
url = "https://libjpeg-turbo.org/"
2021-11-20 20:02:02 +00:00
license = ( BSD)
depends = ( glibc)
makedepends = ( cmake)
provides = ( libjpeg libjpeg.so libturbojpeg.so)
2022-02-27 00:05:02 +00:00
options = ( debug)
source = ( https://sourceforge.net/projects/$pkgname /files/$pkgver /$pkgname -$pkgver .tar.gz{ ,.sig} )
sha512sums = ( '975c9835de7d70c6c8c5a1959adfa18f7f956bc9946fde8f1b40c1d853245c38a3118ac06b93841ec3e90be6945c38d687d062b371496c2ee9b5638d7f60418d'
2020-11-21 17:27:14 +00:00
'SKIP' )
2022-02-27 00:05:02 +00:00
b2sums = ( '87ef47105e66b2ee918e95962ac59963b6adea5b49ab0db692810aee0a13a215a0ef7fe0b549ecd5151274549e12d09eb0b42439bf0a4bc1ad2c4e62dcceb77c'
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
cmake -DCMAKE_INSTALL_PREFIX= /usr \
-DCMAKE_INSTALL_LIBDIR= /usr/lib \
2021-11-20 20:02:02 +00:00
-DCMAKE_BUILD_TYPE= None \
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 \
-S $pkgname -$pkgver
2020-10-18 19:39:30 +00:00
make VERBOSE = 1 -C build
2012-02-12 17:44:45 +00:00
}
check( ) {
2020-10-18 19:39:30 +00:00
make test -C build
2011-06-09 23:05:58 +00:00
}
package( ) {
2022-02-27 00:05:02 +00:00
make VERBOSE = 1 DESTDIR = " $pkgdir " docdir = /usr/share/doc/$pkgname exampledir = /usr/share/doc/$pkgname install -C build
2020-10-18 19:39:30 +00:00
2022-02-27 00:05:02 +00:00
install -d " $pkgdir /usr/share/licenses/ $pkgname "
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
2022-02-27 00:05:02 +00:00
install -vDm 644 $pkgname -$pkgver /jpegint.h " $pkgdir /usr/include "
2011-06-09 23:05:58 +00:00
}