Date: Tuesday, March 12, 2013 @ 09:37:32 Author: svenstaro Revision: 86137
Moving lib32-turbojpeg from AUR Added: lib32-turbojpeg/ lib32-turbojpeg/repos/ lib32-turbojpeg/trunk/ lib32-turbojpeg/trunk/PKGBUILD ----------+ PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) Added: lib32-turbojpeg/trunk/PKGBUILD =================================================================== --- lib32-turbojpeg/trunk/PKGBUILD (rev 0) +++ lib32-turbojpeg/trunk/PKGBUILD 2013-03-12 08:37:32 UTC (rev 86137) @@ -0,0 +1,39 @@ +# Maintainer: Sven-Hendrik Haase <s...@lutzhaase.com> +pkgname=lib32-turbojpeg +pkgver=1.2.1 +pkgrel=1 +pkgdesc="turbojpeg library from libjpeg-turbo (32-bit)" +arch=('x86_64') +url="http://www.libjpeg-turbo.org/About/TurboJPEG" +license=('GPL' 'custom') +depends=('lib32-glibc') +makedepends=('nasm' 'gcc-multilib') +options=('!libtool') +source=(http://sourceforge.net/projects/libjpeg-turbo/files/$pkgver/libjpeg-turbo-$pkgver.tar.gz) +sha1sums=('a4992e102c6d88146709e8e6ce5896d5d0b5a361') + +build() { + cd "$srcdir/libjpeg-turbo-$pkgver" + + export CC="gcc -m32" + export CXX="g++ -m32" + export PKG_CONFIG_PATH="/usr/lib32/pkgconfig" + + sed -i "s|NAFLAGS='-felf64 -DELF -D__x86_64__'|NAFLAGS='-felf32 -DELF -D__x86_64__'|" configure + ./configure --prefix=/usr --with-jpeg8 --mandir=/usr/share/man --libdir=/usr/lib32 --without-simd + make +} + +package() { + cd "$srcdir/libjpeg-turbo-$pkgver" + + make DESTDIR="$pkgdir/" install + + # only distribute libturbojpeg + rm "$pkgdir"/usr/lib32/libj* + + rm -rf "${pkgdir}"/usr/{include,share,bin,sbin} + + install -Dm644 README "$pkgdir/usr/share/licenses/$pkgname/README" + install -Dm644 README-turbo.txt "$pkgdir/usr/share/licenses/$pkgname/README-turbo.txt" +}