void-packages/srcpkgs/libreadline8/template

56 lines
1.6 KiB
Bash

# Template file for 'libreadline8'
pkgname=libreadline8
version=8.2.001
revision=1
_dist_ver="${version%.*}"
_patch_ver="${version##*.}"
bootstrap=yes
build_style=gnu-configure
configure_args="--with-curses --with-shared-termcap-library --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"
changelog="https://tiswww.cwru.edu/php/chet/readline/NEWS"
distfiles="${GNU_SITE}/readline/readline-${_dist_ver}.tar.gz
${GNU_SITE}/readline/readline-${_dist_ver}-patches/readline${_dist_ver/./}-001"
checksum="3feb7171f16a84ee82ca18a36d7b9be109a52c04f492a053331d7d1095007c35
bbf97f1ec40a929edab5aa81998c1e2ef435436c597754916e6a5868f273aff7"
skip_extraction="readline${_dist_ver/./}-001"
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"
}
}