1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: Gaetan Bisson <bisson@archlinux.org>
3 # Contributor: Allan McRae <allan@archlinux.org>
4 # Contributor: Simone Sclavi 'Ito' <darkhado@gmail.com>
9 pkgdesc="JPEG image codec with accelerated baseline compression and decompression"
11 url="https://libjpeg-turbo.org/"
14 makedepends=(cmake nasm 'java-environment>11')
15 optdepends=('java-runtime>11: for TurboJPEG Java wrapper')
16 provides=(libjpeg libjpeg.so libturbojpeg.so)
18 source=(https://sourceforge.net/projects/$pkgname/files/$pkgver/$pkgname-$pkgver.tar.gz{,.sig})
19 sha512sums=('975c9835de7d70c6c8c5a1959adfa18f7f956bc9946fde8f1b40c1d853245c38a3118ac06b93841ec3e90be6945c38d687d062b371496c2ee9b5638d7f60418d'
21 b2sums=('87ef47105e66b2ee918e95962ac59963b6adea5b49ab0db692810aee0a13a215a0ef7fe0b549ecd5151274549e12d09eb0b42439bf0a4bc1ad2c4e62dcceb77c'
23 validpgpkeys=('0338C8D8D9FDA62CF9C421BD7EC2DBB6F4DBF434') # The libjpeg-turbo Project (Signing key for official binaries) <information@libjpeg-turbo.org>
26 cmake -DCMAKE_INSTALL_PREFIX=/usr \
27 -DCMAKE_INSTALL_LIBDIR=/usr/lib \
28 -DCMAKE_BUILD_TYPE=None \
35 make VERBOSE=1 -C build
43 make VERBOSE=1 DESTDIR="$pkgdir" docdir=/usr/share/doc/$pkgname exampledir=/usr/share/doc/$pkgname install -C build
45 install -d "$pkgdir/usr/share/licenses/$pkgname"
46 ln -s ../../doc/$pkgname/LICENSE.md "$pkgdir/usr/share/licenses/$pkgname"
47 # header required by some dependants
48 # https://bugs.archlinux.org/task/24787
49 install -vDm 644 $pkgname-$pkgver/jpegint.h "$pkgdir/usr/include"