84222395b8
These new vars are DESTDIR (by default XBPS_DESTDIR/pkgname-version), SRCPKGDESTDIR (XBPS_DESTDIR/sourcepkg-version) and FILESDIR (XBPS_TEMPLATESDIR/pkgname/files). This simplifies packages that used them. --HG-- extra : convert_revision : 287ea7128cb5df19870ca7aff0a3b8f99a11d63a
28 lines
758 B
Plaintext
28 lines
758 B
Plaintext
# Template file for 'ncurses-base'.
|
|
#
|
|
short_desc="${short_desc} (base files)"
|
|
long_desc="${long_desc}
|
|
|
|
This package contains the base files."
|
|
|
|
do_install()
|
|
{
|
|
cat $XBPS_TEMPLATESDIR/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
|
|
}
|