upgpkg: sbcl 2.2.11-1
[arch-packages.git] / readline / repos / core-x86_64 / PKGBUILD
blob174cbfbe9e33ff5047f3efdf1d0cdf06ef27e1a6
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>
6 pkgname=readline
7 _basever=8.2
8 _patchlevel=001
9 pkgver=${_basever}.${_patchlevel}
10 pkgrel=1
11 pkgdesc='GNU readline library'
12 arch=('x86_64')
13 url='https://tiswww.case.edu/php/chet/readline/rltop.html'
14 license=('GPL')
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}
20         inputrc)
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})
26     done
29 prepare() {
30   cd $pkgname-$_basever
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)
34   done
36   # remove RPATH from shared objects (FS#14366)
37   sed -i 's|-Wl,-rpath,$(libdir) ||g' support/shobj-conf
40 build() {
41   cd $pkgname-$_basever
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
50 package() {
51   make -C $pkgname-$_basever DESTDIR="$pkgdir" install
52   install -Dm644 inputrc "$pkgdir"/etc/inputrc
55 md5sums=('4aa1b31be779e6b84f9a96cb66bc50f6'
56          'SKIP'
57          '58d54966c1191db45973cb3191ac621a'
58          'b800ce35690436a995a4fadf939e53cc'
59          'SKIP')