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

@@ -10,14 +10,11 @@ Add_dependency run gcc-libstdc++
do_install()
{
local destdir=${XBPS_DESTDIR}/${pkgname}-${version}
local origdir=${XBPS_DESTDIR}/${sourcepkg}-${version}
mkdir -p ${DESTDIR}/usr/lib
mkdir -p ${DESTDIR}/usr/include
mkdir -p ${destdir}/usr/lib
mkdir -p ${destdir}/usr/include
mv ${origdir}/usr/lib/libstdc++.*a ${destdir}/usr/lib
mv ${origdir}/usr/lib/libstdc++.so ${destdir}/usr/lib
mv ${origdir}/usr/lib/libsupc++.* ${destdir}/usr/lib
mv ${origdir}/usr/include/c++ ${destdir}/usr/include
mv ${SRCPKGDESTDIR}/usr/lib/libstdc++.*a ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/lib/libstdc++.so ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/lib/libsupc++.* ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/include/c++ ${DESTDIR}/usr/include
}