updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / recode-pybliographer / PKGBUILD
blobc4203957e37cde9fc78deb06808cc73431b0e6ec
1 # Maintainer: Chad Aeschliman <chadaeschliman at gmail dot com>
2 # Contributor: eric <eric@archlinux.org>
3 # Contributor: Tom Newsom <Jeepster@gmx.co.uk>
4 # Contributor: Stefan Husmann <stefan-husmann@t-oline.de>
6 pkgname=recode-pybliographer
7 pkgver=3.6
8 pkgrel=5
9 url="http://directory.fsf.org/recode.html"
10 arch=('i686' 'x86_64')
11 license=('GPL')
12 pkgdesc="Converts files between various character sets and usages patched with pybliographer patch"
13 conflicts=('recode')
14 provides=('recode')
15 install=recode-pybliographer.install
16 source=("http://recode.progiciels-bpi.ca/archives/recode.tar.gz" \
17   recode.patch)
18 md5sums=('be3f40ad2e93dae5cd5f628264bf1877' '23564aea992408803eea0fecf12952d3')
20 build() {
21   cd $srcdir/recode-$pkgver
22   
23   # Patching it with pybliographer recode patch and another small
24   # patch needed to compile
25   if [ "$CARCH" = "x86_64" ]; then
26     rm config.sub config.guess
27     install -Dm755 /usr/share/libtool/config/config.sub config.sub
28     install -Dm755 /usr/share/libtool/config/config.guess config.guess
29   fi || return 1
31   patch -Np1 -i $srcdir/recode.patch || return 1
32   ./configure --prefix=/usr --infodir=/usr/share/info || return 1
33   make || return 1
34   make prefix=$pkgdir/usr infodir=$pkgdir/usr/share/info \
35     install || return 1
36   find $pkgdir -name '*.la' -exec rm {} \; || return 1
37   rm $pkgdir/usr/share/info/dir || return 1
38   for _i in  $pkgdir/usr/share/info/recode.info*
39   do
40     gzip ${_i}
41   done || return 1