mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-01-27 23:44:04 +00:00
extra/libjpeg-turbo to 1.5.2-1
This commit is contained in:
parent
6fe848092b
commit
c9fbf03bab
1 changed files with 12 additions and 7 deletions
|
@ -5,18 +5,20 @@
|
|||
|
||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# - removed makedepends on nasm and java
|
||||
# - added --without-simd to configure, no NEON
|
||||
# - added --without-simd to configure for !AArch64
|
||||
|
||||
pkgname=libjpeg-turbo
|
||||
pkgver=1.5.1
|
||||
pkgver=1.5.2
|
||||
pkgrel=1
|
||||
pkgdesc='JPEG image codec with accelerated baseline compression and decompression'
|
||||
url='http://libjpeg-turbo.virtualgl.org/'
|
||||
arch=('i686' 'x86_64')
|
||||
license=('custom')
|
||||
#makedepends=('jdk8-openjdk')
|
||||
source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
|
||||
sha1sums=('ebb3f9e94044c77831a3e8c809c7ea7506944622')
|
||||
#makedepends=('nasm' 'jdk8-openjdk')
|
||||
validpgpkeys=('7D6293CC6378786E1B5C496885C7044E033FDE16')
|
||||
source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz"{,.sig})
|
||||
sha256sums=('9098943b270388727ae61de82adec73cf9f0dbb240b3bc8b172595ebf405b528'
|
||||
'SKIP')
|
||||
|
||||
provides=('libjpeg=8.1.2' 'turbojpeg')
|
||||
conflicts=('libjpeg' 'turbojpeg')
|
||||
|
@ -32,10 +34,12 @@ prepare() {
|
|||
build() {
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
export JNI_CFLAGS='-I/usr/lib/jvm/default/include -I/usr/lib/jvm/default/include/linux'
|
||||
[[ $CARCH != "aarch64" ]] && CONFIG="--without-simd"
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--mandir=/usr/share/man \
|
||||
--with-jpeg8 \
|
||||
$CONFIG
|
||||
|
||||
make
|
||||
}
|
||||
|
@ -53,7 +57,8 @@ package() {
|
|||
exampledir="/usr/share/doc/${pkgname}" \
|
||||
install
|
||||
|
||||
install -d "${pkgdir}/usr/share/licenses/libjpeg-turbo"
|
||||
ln -t "${pkgdir}/usr/share/licenses/libjpeg-turbo" -s ../../doc/libjpeg-turbo/README{,-turbo.txt}
|
||||
install -m644 jpegint.h "${pkgdir}/usr/include" # required by other software
|
||||
|
||||
install -d "${pkgdir}/usr/share/licenses/libjpeg-turbo"
|
||||
ln -s ../../doc/libjpeg-turbo/README.md "${pkgdir}"/usr/share/licenses/libjpeg-turbo
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue