mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
extra/libjpg-turbo to 1.3.0-2
This commit is contained in:
parent
56522da018
commit
feb7270f36
1 changed files with 12 additions and 23 deletions
|
@ -9,51 +9,40 @@
|
||||||
plugrel=1
|
plugrel=1
|
||||||
|
|
||||||
pkgname=libjpeg-turbo
|
pkgname=libjpeg-turbo
|
||||||
pkgver=1.2.1
|
pkgver=1.3.0
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc="libjpeg derivative with accelerated baseline JPEG compression and decompression"
|
pkgdesc="libjpeg derivative with accelerated baseline JPEG compression and decompression"
|
||||||
arch=('i686' 'x86_64')
|
arch=('i686' 'x86_64')
|
||||||
url="http://libjpeg-turbo.virtualgl.org/"
|
url="http://libjpeg-turbo.virtualgl.org/"
|
||||||
license=('GPL' 'custom')
|
license=('GPL' 'custom')
|
||||||
depends=('glibc')
|
depends=('glibc')
|
||||||
#makedepends=('nasm')
|
#makedepends=('nasm')
|
||||||
provides=('libjpeg=8.0.2')
|
provides=('libjpeg=8.0.2' 'turbojpeg')
|
||||||
conflicts=('libjpeg')
|
conflicts=('libjpeg' 'turbojpeg')
|
||||||
replaces=('libjpeg')
|
replaces=('libjpeg' 'turbojpeg')
|
||||||
options=('!libtool')
|
options=('!libtool')
|
||||||
source=(http://sourceforge.net/projects/$pkgname/files/$pkgver/$pkgname-$pkgver.tar.gz)
|
source=(http://sourceforge.net/projects/$pkgname/files/$pkgver/$pkgname-$pkgver.tar.gz)
|
||||||
sha1sums=('a4992e102c6d88146709e8e6ce5896d5d0b5a361')
|
sha1sums=('1792c964b35604cebd3a8846f1ca6de5976e9c28')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$srcdir/$pkgname-$pkgver"
|
cd $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
|
./configure --prefix=/usr --with-jpeg8 --mandir=/usr/share/man --without-simd
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
cd "$srcdir/$pkgname-$pkgver"
|
cd "$srcdir/$pkgname-$pkgver"
|
||||||
|
|
||||||
make test
|
make test
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$srcdir/$pkgname-$pkgver"
|
cd $pkgname-$pkgver
|
||||||
|
make DESTDIR="$pkgdir/" docdir=/usr/share/doc/libjpeg-turbo \
|
||||||
make DESTDIR="$pkgdir/" install
|
exampledir=/usr/share/doc/libjpeg-turbo install
|
||||||
|
|
||||||
# provide jpegint.h as it is required by various software
|
# provide jpegint.h as it is required by various software
|
||||||
install -m644 jpegint.h "$pkgdir/usr/include/"
|
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"
|
|
||||||
rm "$pkgdir/usr/bin/tjbench"
|
|
||||||
|
|
||||||
install -dm755 "$pkgdir/usr/share/licenses/libjpeg-turbo/"
|
install -dm755 "$pkgdir/usr/share/licenses/libjpeg-turbo/"
|
||||||
ln -s ../../doc/libjpeg-turbo/README \
|
ln -s ../../doc/libjpeg-turbo/README \
|
||||||
"$pkgdir/usr/share/licenses/libjpeg-turbo/README"
|
"$pkgdir/usr/share/licenses/libjpeg-turbo/README"
|
||||||
|
|
Loading…
Reference in a new issue