mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-01-27 23:44:04 +00:00
extra/libjpeg-turbo to 2.1.3-1
This commit is contained in:
parent
13411fe441
commit
0cca436aed
1 changed files with 13 additions and 20 deletions
|
@ -5,54 +5,47 @@
|
|||
|
||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# - removed makedepends on nasm and java, -DWITH_JAVA=OFF
|
||||
# - added -DWITH_SIMD=FALSE to configure for !AArch64
|
||||
|
||||
pkgname=libjpeg-turbo
|
||||
pkgver=2.1.2
|
||||
pkgver=2.1.3
|
||||
pkgrel=1
|
||||
pkgdesc='JPEG image codec with accelerated baseline compression and decompression'
|
||||
url="https://libjpeg-turbo.org/"
|
||||
pkgdesc="JPEG image codec with accelerated baseline compression and decompression"
|
||||
arch=(x86_64)
|
||||
url="https://libjpeg-turbo.org/"
|
||||
license=(BSD)
|
||||
depends=(glibc)
|
||||
makedepends=(cmake)
|
||||
provides=(libjpeg libjpeg.so libturbojpeg.so)
|
||||
source=("https://sourceforge.net/projects/${pkgname}/files/${pkgver}/${pkgname}-${pkgver}.tar.gz"{,.sig})
|
||||
sha512sums=('f0377b58d00310b2e644da31f807ac6c3425823f362ea88bcbed32991dddbea4e7a478676a7c1c4874a34bc578f262bf1d32c925e2f14fa517a50fd911ba8dd5'
|
||||
options=(debug)
|
||||
source=(https://sourceforge.net/projects/$pkgname/files/$pkgver/$pkgname-$pkgver.tar.gz{,.sig})
|
||||
sha512sums=('975c9835de7d70c6c8c5a1959adfa18f7f956bc9946fde8f1b40c1d853245c38a3118ac06b93841ec3e90be6945c38d687d062b371496c2ee9b5638d7f60418d'
|
||||
'SKIP')
|
||||
b2sums=('ae8b7db9fd634b3b29a916098e2b54a8e045cb7a9d883de1f2e8a34542154a724e5d7788fb4b4d816c36d6503fc2a7427165dc3af9d47c77bfb7c51a42bc1d51'
|
||||
b2sums=('87ef47105e66b2ee918e95962ac59963b6adea5b49ab0db692810aee0a13a215a0ef7fe0b549ecd5151274549e12d09eb0b42439bf0a4bc1ad2c4e62dcceb77c'
|
||||
'SKIP')
|
||||
validpgpkeys=('0338C8D8D9FDA62CF9C421BD7EC2DBB6F4DBF434') # The libjpeg-turbo Project (Signing key for official binaries) <information@libjpeg-turbo.org>
|
||||
|
||||
build() {
|
||||
cd "${pkgname}-${pkgver}"
|
||||
[[ $CARCH != "aarch64" ]] && CONFIG="-DWITH_SIMD=FALSE"
|
||||
cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
|
||||
-DCMAKE_BUILD_TYPE=None \
|
||||
-DWITH_JAVA=OFF \
|
||||
-DWITH_JPEG8=ON \
|
||||
-W no-dev \
|
||||
-B build $CONFIG \
|
||||
-S .
|
||||
-B build \
|
||||
-S $pkgname-$pkgver
|
||||
make VERBOSE=1 -C build
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "${pkgname}-${pkgver}"
|
||||
make test -C build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${pkgname}-${pkgver}"
|
||||
make VERBOSE=1 DESTDIR="${pkgdir}" \
|
||||
docdir="/usr/share/doc/${pkgname}" \
|
||||
exampledir="/usr/share/doc/${pkgname}" \
|
||||
install -C build
|
||||
make VERBOSE=1 DESTDIR="$pkgdir" docdir=/usr/share/doc/$pkgname exampledir=/usr/share/doc/$pkgname install -C build
|
||||
|
||||
install -d "${pkgdir}/usr/share/licenses/${pkgname}"
|
||||
ln -s ../../doc/${pkgname}/LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}"
|
||||
install -d "$pkgdir/usr/share/licenses/$pkgname"
|
||||
ln -s ../../doc/$pkgname/LICENSE.md "$pkgdir/usr/share/licenses/$pkgname"
|
||||
# header required by some dependants
|
||||
# https://bugs.archlinux.org/task/24787
|
||||
install -m 644 jpegint.h "${pkgdir}/usr/include"
|
||||
install -vDm 644 $pkgname-$pkgver/jpegint.h "$pkgdir/usr/include"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue