OCaml 4.14.0 rebuild
[arch-packages.git] / libjpeg-turbo / trunk / PKGBUILD
blob19eaa3b422896cd29e72c847a8f6c6c710462dcc
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>
6 pkgname=libjpeg-turbo
7 pkgver=2.1.3
8 pkgrel=2
9 pkgdesc="JPEG image codec with accelerated baseline compression and decompression"
10 arch=(x86_64)
11 url="https://libjpeg-turbo.org/"
12 license=(BSD)
13 depends=(glibc)
14 makedepends=(cmake nasm 'java-environment>11')
15 optdepends=('java-runtime>11: for TurboJPEG Java wrapper')
16 provides=(libjpeg libjpeg.so libturbojpeg.so)
17 options=(debug)
18 source=(https://sourceforge.net/projects/$pkgname/files/$pkgver/$pkgname-$pkgver.tar.gz{,.sig})
19 sha512sums=('975c9835de7d70c6c8c5a1959adfa18f7f956bc9946fde8f1b40c1d853245c38a3118ac06b93841ec3e90be6945c38d687d062b371496c2ee9b5638d7f60418d'
20             'SKIP')
21 b2sums=('87ef47105e66b2ee918e95962ac59963b6adea5b49ab0db692810aee0a13a215a0ef7fe0b549ecd5151274549e12d09eb0b42439bf0a4bc1ad2c4e62dcceb77c'
22         'SKIP')
23 validpgpkeys=('0338C8D8D9FDA62CF9C421BD7EC2DBB6F4DBF434') # The libjpeg-turbo Project (Signing key for official binaries) <information@libjpeg-turbo.org>
25 build() {
26   cmake -DCMAKE_INSTALL_PREFIX=/usr \
27         -DCMAKE_INSTALL_LIBDIR=/usr/lib \
28         -DCMAKE_BUILD_TYPE=None \
29         -DENABLE_STATIC=OFF \
30         -DWITH_JAVA=ON \
31         -DWITH_JPEG8=ON \
32         -W no-dev \
33         -B build \
34         -S $pkgname-$pkgver
35   make VERBOSE=1 -C build
38 check() {
39   make test -C build
42 package() {
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"