mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
extra/libjpeg-turbo to 2.1.5-2
This commit is contained in:
parent
5ba387b209
commit
04a68b6183
1 changed files with 31 additions and 19 deletions
|
@ -8,7 +8,7 @@
|
|||
|
||||
_name=libjpeg-turbo
|
||||
pkgname=$_name
|
||||
pkgver=2.1.4
|
||||
pkgver=2.1.5
|
||||
pkgrel=2
|
||||
pkgdesc="JPEG image codec with accelerated baseline compression and decompression"
|
||||
url="https://libjpeg-turbo.org/"
|
||||
|
@ -17,31 +17,43 @@ license=(BSD)
|
|||
depends=(glibc)
|
||||
makedepends=(cmake ninja)
|
||||
provides=(libjpeg libjpeg.so libturbojpeg.so)
|
||||
options=(debug)
|
||||
source=(https://sourceforge.net/projects/$_name/files/$pkgver/$_name-$pkgver.tar.gz{,.sig})
|
||||
sha512sums=('511f065767c022da06b6c36299686fa44f83441646f7e33b766c6cfab03f91b0e6bfa456962184071dadaed4057ba9a29cba685383f3eb86a4370a1a53731a70'
|
||||
'SKIP')
|
||||
b2sums=('80ffd77d58a37eae0bdc1868d994f34ea52c13e2624c720b1d0b6ec4d6d14b16911163ccd4009c8d6eda214f31e1fff78bb7eb4739ae6589d0fd8c7008c0e972'
|
||||
'SKIP')
|
||||
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() {
|
||||
cmake -S $_name-$pkgver -B build -G Ninja \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
|
||||
-DCMAKE_BUILD_TYPE=None \
|
||||
-DENABLE_STATIC=OFF \
|
||||
-DWITH_JAVA=OFF \
|
||||
-DWITH_JPEG8=ON \
|
||||
-W no-dev \
|
||||
-B 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() {
|
||||
cd build
|
||||
ctest --output-on-failure --stop-on-failure -j$(nproc)
|
||||
ctest --test-dir build --output-on-failure --stop-on-failure -j$(nproc)
|
||||
}
|
||||
|
||||
package() {
|
||||
|
|
Loading…
Reference in a new issue