2009-02-22 05:57:13 +01:00
|
|
|
# Template file for 'ncurses-base'.
|
|
|
|
#
|
|
|
|
short_desc="${short_desc} (base files)"
|
|
|
|
long_desc="${long_desc}
|
|
|
|
|
2009-02-24 07:13:11 +01:00
|
|
|
This package contains the base files."
|
2009-02-22 05:57:13 +01:00
|
|
|
|
|
|
|
do_install()
|
|
|
|
{
|
|
|
|
local destdir=${XBPS_DESTDIR}/${pkgname}-${version}
|
|
|
|
local origdir=${XBPS_DESTDIR}/${sourcepkg}-${version}
|
|
|
|
|
2009-02-24 07:13:11 +01:00
|
|
|
cat $XBPS_TEMPLATESDIR/ncurses/base-files | while read line; do
|
|
|
|
if [ -f ${origdir}/${line} ]; then
|
|
|
|
install -D ${origdir}/${line} ${destdir}/${line}
|
|
|
|
rm -f ${origdir}/${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
|
2009-02-22 05:57:13 +01:00
|
|
|
}
|