mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
extra/libjpeg-turbo to 1.2.0-1
This commit is contained in:
parent
e456da0eff
commit
6044d4a004
1 changed files with 51 additions and 11 deletions
|
@ -1,21 +1,61 @@
|
||||||
# Maintainer: Kevin Mihelich <kevin@plugapps.com>
|
# $Id: PKGBUILD 149986 2012-02-12 02:54:27Z allan $
|
||||||
|
# Maintainer: 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
|
plugrel=1
|
||||||
|
|
||||||
pkgname=libjpeg-turbo
|
pkgname=libjpeg-turbo
|
||||||
pkgver=1.1.1
|
pkgver=1.2.0
|
||||||
pkgrel=4
|
pkgrel=1
|
||||||
pkgdesc="ARM dummy package for the x86 assembly version"
|
pkgdesc="libjpeg derivative with accelerated baseline JPEG compression and decompression"
|
||||||
arch=('arm' 'armv7h')
|
arch=('i686' 'x86_64')
|
||||||
url="http://www.archlinuxarm.org"
|
url="http://libjpeg-turbo.virtualgl.org/"
|
||||||
depends=('libjpeg')
|
license=('GPL' 'custom')
|
||||||
license=('BYOB')
|
depends=('glibc')
|
||||||
|
#makedepends=('nasm')
|
||||||
|
provides=('libjpeg=8.0.2')
|
||||||
|
conflicts=('libjpeg')
|
||||||
|
replaces=('libjpeg')
|
||||||
|
options=('!libtool')
|
||||||
|
source=(http://sourceforge.net/projects/$pkgname/files/$pkgver/$pkgname-$pkgver.tar.gz)
|
||||||
|
md5sums=('5329fa80953938cb4f097afae55059e2')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
echo "libjpeg-turbo!"
|
cd $srcdir/$pkgname-$pkgver
|
||||||
|
|
||||||
|
# put documentation in a reasonable directory...
|
||||||
|
sed -i "/docdir = /s#/doc#/doc/libjpeg-turbo#" Makefile.in
|
||||||
|
sed -i "/exampledir = /s#/doc#/doc/libjpeg-turbo#" Makefile.in
|
||||||
|
|
||||||
|
./configure --prefix=/usr --with-jpeg8 --mandir=/usr/share/man --without-simd
|
||||||
|
make
|
||||||
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
cd $srcdir/$pkgname-$pkgver
|
||||||
|
|
||||||
|
make test
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
mkdir -p $pkgdir/usr/share
|
cd $srcdir/$pkgname-$pkgver
|
||||||
echo "libjpeg-turbo!" > $pkgdir/usr/share/libjpeg-turbo
|
|
||||||
|
make DESTDIR=$pkgdir/ install
|
||||||
|
|
||||||
|
# provide jpegint.h as it is required by various software
|
||||||
|
install -m644 jpegint.h $pkgdir/usr/include/
|
||||||
|
|
||||||
|
# do not distributre libturbojpeg as it is unversioned
|
||||||
|
rm $pkgdir/usr/lib/libturbojpeg.{so,a}
|
||||||
|
rm $pkgdir/usr/include/turbojpeg.h
|
||||||
|
|
||||||
|
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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue