core/recode/PKGBUILD

27 lines
908 B
Bash
Raw Normal View History

2010-05-17 15:50:50 +08:00
# $Id: PKGBUILD 78023 2010-04-19 08:21:40Z dgriffiths $
2010-03-14 23:48:48 +08:00
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
pkgname=recode
pkgver=3.6
2010-05-17 15:50:50 +08:00
pkgrel=4
2010-03-14 23:48:48 +08:00
pkgdesc="Converts files between various character sets and usages"
arch=('i686' 'x86_64')
url="http://www.gnu.org/software/recode/recode.html"
license=('GPL' 'LGPL')
depends=('glibc' 'texinfo')
options=('!libtool')
install=recode.install
2010-05-17 15:50:50 +08:00
source=(ftp://ftp.gnu.org/pub/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz recode-3.6-gcc43.patch)
2010-03-14 23:48:48 +08:00
md5sums=('be3f40ad2e93dae5cd5f628264bf1877' '47b62d7031d208180552174f9e223e9d')
build() {
2010-05-17 15:50:50 +08:00
cd ${srcdir}/${pkgname}-${pkgver}
2010-03-14 23:48:48 +08:00
patch -p0 < ../recode-3.6-gcc43.patch || return 1
./configure --prefix=/usr --mandir=/usr/share/man \
--infodir=/usr/share/info --host=i686-pc-linux-gnu || return 1
make || return 1
2010-05-17 15:50:50 +08:00
make DESTDIR=${pkgdir} install || return 1
2010-03-14 23:48:48 +08:00
rm ${pkgdir}/usr/share/info/dir
gzip ${pkgdir}/usr/share/info/*
}