void-packages/templates/klibc/utils.template
Juan RP 3663adb952 klibc-utils: always use shared bins, remove static ones.
--HG--
extra : convert_revision : 9dfeda82b507758bb5d8e747b21e660660422906
2009-03-08 01:36:58 +01:00

23 lines
648 B
Text

# Template file for 'klibc-utils'.
#
short_desc="${short_desc} (binary utilities)"
long_desc="${long_desc}
This package contains the binary programs built with klibc
for use on the initramfs."
Add_dependency run klibc
do_install()
{
local destdir=${XBPS_DESTDIR}/${pkgname}-${version}
local origdir=${XBPS_DESTDIR}/${sourcepkg}-${version}
mkdir -p ${destdir}/usr/lib/klibc
rm -f ${origdir}/usr/lib/klibc/bin/kinit
mv ${origdir}/usr/lib/klibc/bin/kinit.shared \
${origdir}/usr/lib/klibc/bin/kinit
mv ${origdir}/usr/lib/klibc/bin/sh.shared \
${origdir}/usr/lib/klibc/bin/sh
mv ${origdir}/usr/lib/klibc/bin ${destdir}/usr/lib/klibc
}