mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
67 lines
2.4 KiB
Bash
67 lines
2.4 KiB
Bash
# Maintainer: David Runge <dvzrv@archlinux.org>
|
|
# Contributor: Gaetan Bisson <bisson@archlinux.org>
|
|
# Contributor: Allan McRae <allan@archlinux.org>
|
|
# Contributor: Simone Sclavi 'Ito' <darkhado@gmail.com>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - removed makedepends on nasm and java, -DWITH_JAVA=OFF
|
|
|
|
_name=libjpeg-turbo
|
|
pkgname=$_name
|
|
pkgver=2.1.5
|
|
pkgrel=2
|
|
pkgdesc="JPEG image codec with accelerated baseline compression and decompression"
|
|
url="https://libjpeg-turbo.org/"
|
|
arch=(x86_64)
|
|
license=(BSD)
|
|
depends=(glibc)
|
|
makedepends=(cmake ninja)
|
|
provides=(libjpeg libjpeg.so libturbojpeg.so)
|
|
source=(https://sourceforge.net/projects/$_name/files/$pkgver/$_name-$pkgver.tar.gz{,.sig}
|
|
$_name-initialize-simd_support.patch::https://github.com/libjpeg-turbo/libjpeg-turbo/commit/4e028ecd63aa.patch)
|
|
sha512sums=('ceab6d1c3c46d2816b06402e3b912e950d887fc8a6fb32fa6876f4aaa663b4769d8f4c50e1b967addf6704d0760ca14ed723d55e0312d7ca69e7f2a91484c0dc'
|
|
'SKIP'
|
|
'9275268b5e138ee76a7245aded05917a16c05951441d53bd1b6e65a306a75dc0d0c672c7aa5d52edce7ec197a7fba5658ffe7db0a406d83a88d55819338a5023')
|
|
b2sums=('c65de2717ddc33447064412738b2db94a92693faad18f29f14c5c368d9eb4c617fe447a6f9428d9a101458dec0c65abc527e20632571eaa727d98cd5435241d4'
|
|
'SKIP'
|
|
'9bbad32e30289951a95ebef4ce36a0045d69f50a73a72a4f4820257acabfb6e6a9234538bfcc76441885c2fccf01d44008f7795c3b85921b23cbb1e4a0c05228')
|
|
validpgpkeys=('0338C8D8D9FDA62CF9C421BD7EC2DBB6F4DBF434') # The libjpeg-turbo Project (Signing key for official binaries) <information@libjpeg-turbo.org>
|
|
|
|
prepare() {
|
|
cd $_name-$pkgver
|
|
|
|
# https://github.com/libjpeg-turbo/libjpeg-turbo/issues/649
|
|
patch -Np1 -i ../$_name-initialize-simd_support.patch
|
|
}
|
|
|
|
build() {
|
|
local cmake_options=(
|
|
-B build
|
|
-DCMAKE_INSTALL_PREFIX=/usr
|
|
-DCMAKE_INSTALL_LIBDIR=/usr/lib
|
|
-DCMAKE_BUILD_TYPE=None
|
|
-DENABLE_STATIC=OFF
|
|
-DWITH_JAVA=OFF
|
|
-DWITH_JPEG8=ON
|
|
-G Ninja
|
|
-S $_name-$pkgver
|
|
-W no-dev
|
|
)
|
|
|
|
cmake "${cmake_options[@]}"
|
|
cmake --build build -v
|
|
}
|
|
|
|
check() {
|
|
ctest --test-dir build --output-on-failure --stop-on-failure -j$(nproc)
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build -v
|
|
|
|
# header required by some dependents
|
|
# https://bugs.archlinux.org/task/24787
|
|
install -vDm 644 $_name-$pkgver/jpegint.h "$pkgdir/usr/include"
|
|
|
|
install -vDm 644 $_name-$pkgver/LICENSE.md -t "$pkgdir/usr/share/licenses/$pkgname"
|
|
}
|