🔒 Repository is read-only – file editing is disabled.
12345678910111213141516171819202122232425262728293031323334353637
pkgname: readline
pkgver: '8.3'
pkgrel: '2'
pkgdesc: Set of libraries that offers command-line editing and history capabilities
url: 'https://tiswww.case.edu/php/chet/readline/rltop.html'
arch: x86_64
depends: []
makedepends: []
source:
- 'https://ftp.gnu.org/gnu/readline/readline-${pkgver}.tar.gz'
sha256sums:
- fe5383204467828cd495ee8d1d3c037a7eba1389c22bc6a041f627976f9061cc
build: |
cd ${pkgname}-${pkgver}
sed -i '/MV.*old/d' Makefile.in
sed -i '/{OLDSUFF}/c:' support/shlib-install
./configure --prefix=/usr \
--docdir=/usr/share/doc/${pkgname}
make SHLIB_LIBS=-lncurses
make DESTDIR=${PKGDIR} SHLIB_LIBS=-lncurses install
mkdir -p ${PKGDIR}/usr/share/doc/${pkgname}
install -v -m644 doc/*.{ps,pdf,html,dvi} \
${PKGDIR}/usr/share/doc/${pkgname}
# readline.pc domaga się tinfo.pc (ncurses), którego nie dostarczamy –
# wyczyść Requires.private, inaczej pkg-config(1) nie znajduje readline
sed -i '/^Requires.private:/d' \
${PKGDIR}/usr/lib/pkgconfig/readline.pc \
${PKGDIR}/usr/lib/pkgconfig/history.pc
rm -d ${PKGDIR}/usr/bin
package: |
true