summaryrefslogtreecommitdiff
path: root/multilib/lib32-libjpeg/PKGBUILD
blob: 46c3ad07eaf1f1562b71dc8cc43f86d46975d20a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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" 
}