diff options
author | root <root@rshg054.dnsready.net> | 2011-11-03 23:14:47 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-11-03 23:14:47 +0000 |
commit | b625511a28fd8401f524474b5339e75328595150 (patch) | |
tree | 1daf0e94a58707bedb1a8ef5c3e98ce2cc9d7fa2 /multilib/lib32-readline | |
parent | 6c10ff06abb7ca3a4db4c73624f73aafdd3b2e63 (diff) |
Thu Nov 3 23:14:47 UTC 2011
Diffstat (limited to 'multilib/lib32-readline')
-rw-r--r-- | multilib/lib32-readline/PKGBUILD | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/multilib/lib32-readline/PKGBUILD b/multilib/lib32-readline/PKGBUILD index 08aaf0132..ea951db7b 100644 --- a/multilib/lib32-readline/PKGBUILD +++ b/multilib/lib32-readline/PKGBUILD @@ -1,34 +1,35 @@ -# $Id: PKGBUILD 26740 2010-09-15 23:02:31Z bluewind $ -# Maintainer: Andreas Radke <andyrtr@archlinux.org> +# $Id: PKGBUILD 57756 2011-11-02 09:06:48Z bluewind $ +# Contributor: Allan McRae <allan@archlinux.org> # Contributor: judd <jvinet@zeroflux.org> _pkgbasename=readline pkgname=lib32-$_pkgbasename -_patchlevel=002 #prepare for some patches -pkgver=6.1.$_patchlevel -pkgrel=3 +_basever=6.2 +_patchlevel=001 #prepare for some patches +pkgver=$_basever.$_patchlevel +pkgrel=1 pkgdesc="GNU readline library (32-bit)" arch=(x86_64) url="http://tiswww.case.edu/php/chet/readline/rltop.html" license=('GPL') depends=('lib32-glibc' 'lib32-ncurses' $_pkgbasename) makedepends=('gcc-multilib') -source=(http://ftp.gnu.org/gnu/readline/readline-6.1.tar.gz) +source=(http://ftp.gnu.org/gnu/readline/readline-$_basever.tar.gz) if [ $_patchlevel -gt 00 ]; then - for (( p=1; p<=$_patchlevel; p++ )); do - source=(${source[@]} http://ftp.gnu.org/gnu/readline/readline-6.1-patches/readline61-$(printf "%03d" $p)) + for (( p=1; p<=$((10#${_patchlevel})); p++ )); do + source=(${source[@]} http://ftp.gnu.org/gnu/readline/readline-$_basever-patches/readline${_basever//./}-$(printf "%03d" $p)) done fi -md5sums=('fc2f7e714fe792db1ce6ddc4c9fb4ef3' - 'c642f2e84d820884b0bf9fd176bc6c3f' - '1a76781a1ea734e831588285db7ec9b1') +md5sums=('67948acb2ca081f23359d0256e9a271c' + '83287d52a482f790dfb30ec0a8746669') build() { + cd ${srcdir}/${_pkgbasename}-$_basever + export CC="gcc -m32" export CXX="g++ -m32" export PKG_CONFIG_PATH="/usr/lib32/pkgconfig" - cd ${srcdir}/${_pkgbasename}-6.1 for p in ../readline61-*; do [ -e "$p" ] || continue msg "applying patch ${p}" @@ -43,7 +44,7 @@ build() { } package() { - cd ${srcdir}/${_pkgbasename}-6.1 + cd ${srcdir}/${_pkgbasename}-$_basever make DESTDIR=${pkgdir} install rm -rf "${pkgdir}"/usr/{include,share,bin} |