83 lines
3.2 KiB
Bash
83 lines
3.2 KiB
Bash
# Template file for 'libreadline8'
|
|
pkgname=libreadline8
|
|
version=8.2.010
|
|
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
|
|
${GNU_SITE}/readline/readline-${_dist_ver}-patches/readline${_dist_ver/./}-002
|
|
${GNU_SITE}/readline/readline-${_dist_ver}-patches/readline${_dist_ver/./}-003
|
|
${GNU_SITE}/readline/readline-${_dist_ver}-patches/readline${_dist_ver/./}-004
|
|
${GNU_SITE}/readline/readline-${_dist_ver}-patches/readline${_dist_ver/./}-005
|
|
${GNU_SITE}/readline/readline-${_dist_ver}-patches/readline${_dist_ver/./}-006
|
|
${GNU_SITE}/readline/readline-${_dist_ver}-patches/readline${_dist_ver/./}-007
|
|
${GNU_SITE}/readline/readline-${_dist_ver}-patches/readline${_dist_ver/./}-008
|
|
${GNU_SITE}/readline/readline-${_dist_ver}-patches/readline${_dist_ver/./}-009
|
|
${GNU_SITE}/readline/readline-${_dist_ver}-patches/readline${_dist_ver/./}-010"
|
|
checksum="3feb7171f16a84ee82ca18a36d7b9be109a52c04f492a053331d7d1095007c35
|
|
bbf97f1ec40a929edab5aa81998c1e2ef435436c597754916e6a5868f273aff7
|
|
e06503822c62f7bc0d9f387d4c78c09e0ce56e53872011363c74786c7cd4c053
|
|
24f587ba46b46ed2b1868ccaf9947504feba154bb8faabd4adaea63ef7e6acb0
|
|
79572eeaeb82afdc6869d7ad4cba9d4f519b1218070e17fa90bbecd49bd525ac
|
|
622ba387dae5c185afb4b9b20634804e5f6c1c6e5e87ebee7c35a8f065114c99
|
|
c7b45ff8c0d24d81482e6e0677e81563d13c74241f7b86c4de00d239bc81f5a1
|
|
5911a5b980d7900aabdbee483f86dab7056851e6400efb002776a0a4a1bab6f6
|
|
a177edc9d8c9f82e8c19d0630ab351f3fd1b201d655a1ddb5d51c4cee197b26a
|
|
3d9885e692e1998523fd5c61f558cecd2aafd67a07bd3bfe1d7ad5a31777a116
|
|
758e2ec65a0c214cfe6161f5cde3c5af4377c67d820ea01d13de3ca165f67b4c"
|
|
skip_extraction="readline${_dist_ver/./}-001
|
|
readline${_dist_ver/./}-002
|
|
readline${_dist_ver/./}-003
|
|
readline${_dist_ver/./}-004
|
|
readline${_dist_ver/./}-005
|
|
readline${_dist_ver/./}-006
|
|
readline${_dist_ver/./}-007
|
|
readline${_dist_ver/./}-008
|
|
readline${_dist_ver/./}-009
|
|
readline${_dist_ver/./}-010"
|
|
|
|
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"
|
|
}
|
|
}
|