Date: Tuesday, March 12, 2013 @ 09:39:49 Author: svenstaro Revision: 86140
archrelease: copy trunk to community-x86_64 Added: lib32-turbojpeg/repos/community-x86_64/ lib32-turbojpeg/repos/community-x86_64/PKGBUILD (from rev 86139, lib32-turbojpeg/trunk/PKGBUILD) ----------+ PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) Copied: lib32-turbojpeg/repos/community-x86_64/PKGBUILD (from rev 86139, lib32-turbojpeg/trunk/PKGBUILD) =================================================================== --- community-x86_64/PKGBUILD (rev 0) +++ community-x86_64/PKGBUILD 2013-03-12 08:39:49 UTC (rev 86140) @@ -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" +}