void-packages/srcpkgs/libreadline8/template
2020-12-30 19:17:46 +01:00

51 lines
1.4 KiB
Bash

# Template file for 'libreadline8'
pkgname=libreadline8
_dist_ver=8.1
_patch_ver=000
version="${_dist_ver}.${_patch_ver}"
revision=1
bootstrap=yes
wrksrc="readline-${_dist_ver}"
build_style=gnu-configure
configure_args="--with-curses --enable-multibyte bash_cv_termcap_lib=libncursesw"
makedepends="ncurses-devel"
short_desc="GNU Readline Library"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://tiswww.cwru.edu/php/chet/readline/rltop.html"
distfiles="${GNU_SITE}/readline/readline-${_dist_ver}.tar.gz"
checksum=f8ceb4ee131e3232226a17f51b164afc46cd0b9e6cef344be87c65962cb82b02
post_patch() {
cd ${wrksrc}
for p in $(seq -w 001 ${_patch_ver}); do
patch -s -Np0 -i ${XBPS_SRCDISTDIR}/${pkgname}-${version}/readline${_dist_ver/./}-${p}
msg_normal " Applying patch readline${_dist_ver/./}-$p.\n"
done
}
post_install() {
# Examples and README, COPYING, INSTALL
rm -rf ${DESTDIR}/usr/share/{readline,doc}
}
libhistory8_package() {
short_desc+=" - history library"
pkg_install() {
vmove "usr/lib/libhistory.so.*"
}
}
readline-devel_package() {
depends="ncurses-devel ${sourcepkg}-${version}_${revision}
libhistory8-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/lib/pkgconfig
vmove usr/include
vmove usr/share/man/man3
vmove usr/share/info
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}