1 # Maintainer: Giancarlo Razzolini <grazzolini@archlinux.org>
2 # Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
3 # Contributor: Allan McRae <allan@archlinux.org>
4 # Contributor: judd <jvinet@zeroflux.org>
9 pkgver=${_basever}.${_patchlevel}
11 pkgdesc='GNU readline library'
13 url='https://tiswww.case.edu/php/chet/readline/rltop.html'
15 backup=('etc/inputrc')
16 depends=('glibc' 'ncurses' 'libncursesw.so')
17 provides=('libhistory.so' 'libreadline.so')
18 options=('!emptydirs' 'debug')
19 source=(https://ftp.gnu.org/gnu/readline/readline-$_basever.tar.gz{,.sig}
21 validpgpkeys=('7C0135FB088AAF6C66C650B9BB5869F064EA74AB') # Chet Ramey
23 if [ $_patchlevel -gt 0 ]; then
24 for (( _p=1; _p <= $((10#${_patchlevel})); _p++ )); do
25 source=(${source[@]} https://ftp.gnu.org/gnu/readline/readline-$_basever-patches/readline${_basever//.}-$(printf "%03d" $_p){,.sig})
31 for (( _p=1; _p <= $((10#${_patchlevel})); _p++ )); do
32 msg "applying patch readline${_basever//.}-$(printf "%03d" $_p)"
33 patch -p0 -i ../readline${_basever//.}-$(printf "%03d" $_p)
36 # remove RPATH from shared objects (FS#14366)
37 sed -i 's|-Wl,-rpath,$(libdir) ||g' support/shobj-conf
43 # build with -fPIC for x86_64 (FS#15634)
44 [[ $CARCH == "x86_64" ]] && CFLAGS="$CFLAGS -fPIC"
46 ./configure --prefix=/usr
47 make SHLIB_LIBS=-lncurses
51 make -C $pkgname-$_basever DESTDIR="$pkgdir" install
52 install -Dm644 inputrc "$pkgdir"/etc/inputrc
55 md5sums=('4aa1b31be779e6b84f9a96cb66bc50f6'
57 '58d54966c1191db45973cb3191ac621a'
58 'b800ce35690436a995a4fadf939e53cc'