vp-build/srcpkgs/ncurses/ncurses-base.template

31 lines
775 B
Plaintext
Raw Normal View History

# Template file for 'ncurses-base'.
#
short_desc="${sourcepkg} base files"
long_desc="${long_desc}
This package contains the base files."
noarch=yes
revision=1
do_install()
{
cat $XBPS_SRCPKGDIR/ncurses/base-files | while read line; do
if [ -f ${SRCPKGDESTDIR}/${line} ]; then
install -D ${SRCPKGDESTDIR}/${line} ${DESTDIR}/${line}
rm -f ${SRCPKGDESTDIR}/${line}
fi
done
mkdir -p ${DESTDIR}/lib/terminfo/a
mkdir -p ${DESTDIR}/lib/terminfo/l
mkdir -p ${DESTDIR}/lib/terminfo/v
cp ${DESTDIR}/usr/share/terminfo/a/ansi ${DESTDIR}/lib/terminfo/a
cp ${DESTDIR}/usr/share/terminfo/l/linux ${DESTDIR}/lib/terminfo/l
for f in vt100 vt100-am vt100-nav vt102 vt200 vt220 vt52; do
cp ${DESTDIR}/usr/share/terminfo/v/${f} \
${DESTDIR}/lib/terminfo/v
done
}