Provide some vars for use in template's targets.

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
This commit is contained in:
Juan RP
2009-03-11 06:31:56 +01:00
parent 529cb677ff
commit 84222395b8
90 changed files with 535 additions and 735 deletions

View File

@@ -20,6 +20,7 @@ long_desc="
Add_dependency full glibc
Add_dependency full dash
Add_dependency full coreutils
Add_dependency full module-init-tools
Add_dependency full initramfs-tools
Add_dependency build perl
@@ -47,11 +48,15 @@ pre_build()
post_install()
{
local destdir=$XBPS_DESTDIR/$pkgname-$version
install -d $destdir/lib $destdir/boot
install -d ${DESTDIR}/lib ${DESTDIR}/boot
cd $wrksrc || exit 1
install -m 644 arch/x86/boot/bzImage $destdir/boot/vmlinuz-$version
install -m 644 System.map $destdir/boot/System.map-$version
install -m 644 arch/x86/boot/bzImage ${DESTDIR}/boot/vmlinuz-$version
install -m 644 System.map ${DESTDIR}/boot/System.map-$version
install -m 644 .config ${DESTDIR}/boot/config-$version
cd ${DESTDIR}/lib/modules/${version} && \
rm -f source build && \
ln -sf ../../../usr/src/kernel-headers-${version} build && \
ln -sf build source
}