summaryrefslogtreecommitdiffstats
path: root/libjpeg6/PKGBUILD
blob: 50f570190caccd180056fef7595f54dfcdd68cda (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
# Contributor: Mikael Eriksson <mikael_eriksson@miffe.org>
# Resurected from svn, originaly by
# Maintainer: Allan McRae <allan@archlinux.org>
# Committer: Judd Vinet <jvinet@zeroflux.org>

pkgname=libjpeg6
pkgver=6b
pkgrel=7
pkgdesc="Library of JPEG support functions"
arch=('i686' 'x86_64')
url="http://www.ijg.org/"
license=('custom')
depends=('glibc')
makedepends=('libtool')
options=(!libtool)
source=(ftp://ftp.debian.org/debian/pool/main/libj/libjpeg6b/libjpeg6b_6b.orig.tar.gz)
md5sums=('dbd5f3b47ed13132f04c685d608a7547')

build() {
  cd $srcdir/jpeg-$pkgver
  cp /usr/share/libtool/config/config.{guess,sub} .
  sed -i "s#./libtool#libtool#" configure
  ./configure --prefix=/usr --enable-shared --enable-static
  make || return 1
  mkdir -p $pkgdir/usr/{bin,lib,include,share/man/man1}
  make prefix=$pkgdir/usr mandir=$pkgdir/usr/share/man/man1 install
  install -m644 jpegint.h $pkgdir/usr/include
  install -Dm644 README $pkgdir/usr/share/licenses/libjpeg6/README
  # Fix /usr/bin
  for fn in $pkgdir/usr/bin/*; do mv $fn ${fn}6; done
  # Fix /usr/lib
  rm $pkgdir/usr/lib/libjpeg.{a,so}
  # Fix /usr/share/man
  for fn in $pkgdir/usr/share/man/man1/*; do mv $fn ${fn%.1}6.1; done
  # Fix /usr/include
  mkdir -p $pkgdir/usr/include/libjpeg6
  mv $pkgdir/usr/include/*.h $pkgdir/usr/include/libjpeg6
}