mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
45 lines
1.3 KiB
Bash
45 lines
1.3 KiB
Bash
# $Id$
|
|
# Maintainer: 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
|
|
# - added --without-simd to configure, no NEON
|
|
|
|
pkgname=libjpeg-turbo
|
|
pkgver=1.4.0
|
|
pkgrel=1
|
|
pkgdesc='JPEG image codec with accelerated baseline compression and decompression'
|
|
url='http://libjpeg-turbo.virtualgl.org/'
|
|
license=('GPL' 'custom')
|
|
arch=('i686' 'x86_64')
|
|
source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
|
|
sha1sums=('a9ed7a99a6090e0848836c5df8e836f300a098b9')
|
|
provides=('libjpeg=8.0.2' 'turbojpeg')
|
|
conflicts=('libjpeg' 'turbojpeg')
|
|
replaces=('libjpeg' 'turbojpeg')
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
./configure --prefix=/usr --with-jpeg8 --mandir=/usr/share/man --without-simd
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
make test
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
make \
|
|
DESTDIR="${pkgdir}" \
|
|
docdir="/usr/share/doc/${pkgname}" \
|
|
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
|
|
}
|