summaryrefslogtreecommitdiff
path: root/multilib/lib32-libjpeg
diff options
context:
space:
mode:
Diffstat (limited to 'multilib/lib32-libjpeg')
-rw-r--r--multilib/lib32-libjpeg/PKGBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/multilib/lib32-libjpeg/PKGBUILD b/multilib/lib32-libjpeg/PKGBUILD
new file mode 100644
index 000000000..46c3ad07e
--- /dev/null
+++ b/multilib/lib32-libjpeg/PKGBUILD
@@ -0,0 +1,39 @@
+# $Id: PKGBUILD 38658 2011-01-30 08:53:28Z bluewind $
+# Maintainer: Allan McRae <allan@archlinux.org>
+# Contributor: Judd Vinet <jvinet@zeroflux.org>
+
+_pkgbasename=libjpeg
+pkgname=lib32-$_pkgbasename
+pkgver=8.3.0
+_pkgver=8c
+pkgrel=1
+pkgdesc="Library of JPEG support functions (32-bit)"
+arch=('x86_64')
+url="http://www.ijg.org/"
+license=('custom')
+depends=('lib32-glibc' $_pkgbasename)
+makedepends=('libtool' 'gcc-multilib')
+options=('!libtool')
+source=(http://www.ijg.org/files/jpegsrc.v${_pkgver}.tar.gz)
+md5sums=('a2c10c04f396a9ce72894beb18b4e1f9')
+
+build() {
+ cd $srcdir/jpeg-${_pkgver}
+
+ export CC="gcc -m32"
+ export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+
+ ./configure --prefix=/usr --enable-shared --enable-static \
+ --libdir=/usr/lib32
+ make
+}
+
+package() {
+ cd $srcdir/jpeg-${_pkgver}
+ make DESTDIR="$pkgdir" install
+
+ rm -rf "${pkgdir}"/usr/{include,share,bin}
+
+ mkdir -p "$pkgdir/usr/share/licenses"
+ ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
+}