mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
55 lines
1.9 KiB
Bash
55 lines
1.9 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.4
|
|
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)
|
|
options=(debug)
|
|
source=(https://sourceforge.net/projects/$_name/files/$pkgver/$_name-$pkgver.tar.gz{,.sig})
|
|
sha512sums=('511f065767c022da06b6c36299686fa44f83441646f7e33b766c6cfab03f91b0e6bfa456962184071dadaed4057ba9a29cba685383f3eb86a4370a1a53731a70'
|
|
'SKIP')
|
|
b2sums=('80ffd77d58a37eae0bdc1868d994f34ea52c13e2624c720b1d0b6ec4d6d14b16911163ccd4009c8d6eda214f31e1fff78bb7eb4739ae6589d0fd8c7008c0e972'
|
|
'SKIP')
|
|
validpgpkeys=('0338C8D8D9FDA62CF9C421BD7EC2DBB6F4DBF434') # The libjpeg-turbo Project (Signing key for official binaries) <information@libjpeg-turbo.org>
|
|
|
|
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 \
|
|
-S $_name-$pkgver
|
|
cmake --build build -v
|
|
}
|
|
|
|
check() {
|
|
cd build
|
|
ctest --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"
|
|
}
|