PKGBUILDs/extra/libjpeg-turbo/PKGBUILD

71 lines
2 KiB
Bash
Raw Normal View History

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
2023-02-27 23:54:38 +00:00
pkgname=libjpeg-turbo
2024-09-19 10:27:56 +00:00
pkgver=3.0.4
2024-05-22 12:44:26 +00:00
pkgrel=1
2022-02-27 00:05:02 +00:00
pkgdesc="JPEG image codec with accelerated baseline compression and decompression"
url="https://libjpeg-turbo.org/"
2024-01-30 14:22:24 +00:00
_url="https://github.com/libjpeg-turbo/libjpeg-turbo/"
2022-08-21 19:09:31 +00:00
arch=(x86_64)
2023-10-27 18:21:19 +00:00
license=(
BSD-3-Clause
IJG
)
2021-11-20 20:02:02 +00:00
depends=(glibc)
2023-08-07 12:36:27 +00:00
makedepends=(
cmake
ninja
)
provides=(
libjpeg
libjpeg.so
libturbojpeg.so
)
source=(
2024-01-30 14:22:24 +00:00
$_url/releases/download/$pkgver/$pkgname-$pkgver.tar.gz{,.sig}
2023-08-07 12:36:27 +00:00
)
2024-09-19 10:27:56 +00:00
sha512sums=('04d37d65131f7ab8586507fe6520452e791e9b8d72a08cf52f81279450b4c6b8a5b49ff3e14e358d3c32cb5666b6d4576d1e16895af8213a1761464de5dc9d31'
2023-10-27 18:21:19 +00:00
'SKIP')
2024-09-19 10:27:56 +00:00
b2sums=('cf951582ce7cdf0dce39075bb1cc58f6a61fa0bdaca4874a4f06a03d2cd11775bc626c8d391d4fc76574d302a781ba47e5c90e2aa2d6a21a8b8d06712437e241'
2023-10-27 18:21:19 +00:00
'SKIP')
2020-11-21 17:27:14 +00:00
validpgpkeys=('0338C8D8D9FDA62CF9C421BD7EC2DBB6F4DBF434') # The libjpeg-turbo Project (Signing key for official binaries) <information@libjpeg-turbo.org>
2016-06-12 19:32:50 +00:00
build() {
2023-02-15 02:17:54 +00:00
local cmake_options=(
-B build
2023-10-27 18:21:19 +00:00
-D CMAKE_INSTALL_PREFIX=/usr
-D CMAKE_INSTALL_LIBDIR=/usr/lib
-D CMAKE_BUILD_TYPE=None
-D ENABLE_STATIC=OFF
-D WITH_JAVA=OFF
-D WITH_JPEG8=ON
2023-02-15 02:17:54 +00:00
-G Ninja
2023-02-27 23:54:38 +00:00
-S $pkgname-$pkgver
2023-02-15 02:17:54 +00:00
-W no-dev
)
cmake "${cmake_options[@]}"
2022-08-21 19:09:31 +00:00
cmake --build build -v
2012-02-12 17:44:45 +00:00
}
check() {
2023-02-15 02:17:54 +00:00
ctest --test-dir build --output-on-failure --stop-on-failure -j$(nproc)
}
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
2023-02-27 23:54:38 +00:00
install -vDm 644 $pkgname-$pkgver/jpegint.h "$pkgdir/usr/include"
2022-08-21 19:09:31 +00:00
2023-10-27 18:21:19 +00:00
install -vDm 644 $pkgname-$pkgver/LICENSE.md -t "$pkgdir/usr/share/licenses/$pkgname/"
install -vDm 644 $pkgname-$pkgver/README.ijg -t "$pkgdir/usr/share/licenses/$pkgname/"
}