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>
10 pkgdesc="JPEG image codec with accelerated baseline compression and decompression"
11 url="https://libjpeg-turbo.org/"
14 depends=(lib32-glibc "$_name=$pkgver")
15 makedepends=(cmake ninja nasm)
16 provides=(lib32-libjpeg libjpeg.so libturbojpeg.so)
17 source=(https://sourceforge.net/projects/$_name/files/$pkgver/$_name-$pkgver.tar.gz{,.sig})
18 sha512sums=('86a7248d064043b26b09755633ef4872a2a6133c9e677a9fe4be6645b2e0fde102cf01e09119967b3b6b85f4cb93f3f7c49ec4973944d5eff99b5b90ce8b0be6'
20 b2sums=('9583a0a91e45347d651de6bf5192a23bfe4e64cef67cdbb18f5b578b424fc46fc114e5649e93a467906cf047948e43a11b6d17b48c47f879c51cff1a4ef356ff'
22 validpgpkeys=('0338C8D8D9FDA62CF9C421BD7EC2DBB6F4DBF434') # The libjpeg-turbo Project (Signing key for official binaries) <information@libjpeg-turbo.org>
27 -DCMAKE_INSTALL_PREFIX=/usr
28 -DCMAKE_INSTALL_LIBDIR=/usr/lib32
29 -DCMAKE_BUILD_TYPE=None
40 export PKG_CONFIG="i686-pc-linux-gnu-pkg-config"
42 cmake "${cmake_options[@]}"
43 cmake --build build -v
47 ctest --test-dir build --output-on-failure --stop-on-failure -j$(nproc)
51 DESTDIR="$pkgdir" cmake --install build -v
53 # remove everything that is provided by libjpeg-turbo
54 rm -r "$pkgdir"/usr/{include,share,bin}
56 install -vDm 644 $_name-$pkgver/LICENSE.md -t "$pkgdir/usr/share/licenses/$pkgname"