mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-19 00:21:40 +00:00
extra/libjpeg-turbo to 1.3.0-3
This commit is contained in:
parent
75c41e62c3
commit
e2d9addd81
1 changed files with 26 additions and 30 deletions
|
@ -1,51 +1,47 @@
|
|||
# $Id: PKGBUILD 149986 2012-02-12 02:54:27Z allan $
|
||||
# Maintainer: Allan McRae <allan@archlinux.org>
|
||||
# $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 in main repositories yet
|
||||
|
||||
plugrel=1
|
||||
# - added --without-simd to configure, no NEON
|
||||
|
||||
pkgname=libjpeg-turbo
|
||||
pkgver=1.3.0
|
||||
pkgrel=2
|
||||
pkgdesc="libjpeg derivative with accelerated baseline JPEG compression and decompression"
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://libjpeg-turbo.virtualgl.org/"
|
||||
pkgrel=3
|
||||
pkgdesc='JPEG image codec with accelerated baseline compression and decompression'
|
||||
url='http://libjpeg-turbo.virtualgl.org/'
|
||||
license=('GPL' 'custom')
|
||||
depends=('glibc')
|
||||
#makedepends=('nasm')
|
||||
arch=('i686' 'x86_64')
|
||||
source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
|
||||
sha1sums=('1792c964b35604cebd3a8846f1ca6de5976e9c28')
|
||||
|
||||
provides=('libjpeg=8.0.2' 'turbojpeg')
|
||||
conflicts=('libjpeg' 'turbojpeg')
|
||||
replaces=('libjpeg' 'turbojpeg')
|
||||
options=('!libtool')
|
||||
source=(http://sourceforge.net/projects/$pkgname/files/$pkgver/$pkgname-$pkgver.tar.gz)
|
||||
sha1sums=('1792c964b35604cebd3a8846f1ca6de5976e9c28')
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
./configure --prefix=/usr --with-jpeg8 --mandir=/usr/share/man --without-simd
|
||||
make
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
./configure --prefix=/usr --with-jpeg8 --mandir=/usr/share/man --without-simd
|
||||
make
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
make test
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
make test
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
make DESTDIR="$pkgdir/" docdir=/usr/share/doc/libjpeg-turbo \
|
||||
exampledir=/usr/share/doc/libjpeg-turbo install
|
||||
|
||||
# provide jpegint.h as it is required by various software
|
||||
install -m644 jpegint.h "$pkgdir/usr/include/"
|
||||
|
||||
install -dm755 "$pkgdir/usr/share/licenses/libjpeg-turbo/"
|
||||
ln -s ../../doc/libjpeg-turbo/README \
|
||||
"$pkgdir/usr/share/licenses/libjpeg-turbo/README"
|
||||
ln -s ../../doc/libjpeg-turbo/README-turbo.txt \
|
||||
"$pkgdir/usr/share/licenses/libjpeg-turbo/README-turbo.txt"
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue