e0030bc0fe
- Added an additional shell func to add full (build/run), build or run time dependencies to packages. An optional third parameter can be used to specify other version than the one set in the depends file. - Use a "depends" file in package directory to specify minimum required ABI/API version for a package, so that there's no need to set the version all the time in pkgs. - Updated bash to 4.0. --HG-- extra : convert_revision : 1aa0ce32d4bdc2cd371eac19ae7bcff2c986b6b3
31 lines
849 B
Plaintext
31 lines
849 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()
|
|
{
|
|
local destdir=${XBPS_DESTDIR}/${pkgname}-${version}
|
|
local origdir=${XBPS_DESTDIR}/${sourcepkg}-${version}
|
|
|
|
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
|
|
}
|