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

@ -1,7 +1,7 @@
# Template file for 'cmake'
pkgname=cmake
version=2.6.2
distfiles="http://www.cmake.org/files/v2.6/cmake-2.6.2.tar.gz"
distfiles="http://www.cmake.org/files/v2.6/$pkgname-$version.tar.gz"
build_style=configure
configure_script=./bootstrap
configure_args="--prefix=$XBPS_DESTDIR/$pkgname-$version/usr"
@ -17,12 +17,11 @@ long_desc="
makefiles and workspaces that can be used in the compiler environment
of your choice."
run_depends="glibc-2.8 openssl-0.9.8"
Add_dependency full glibc
Add_dependency full openssl
post_install()
{
local destdir=$XBPS_DESTDIR/$pkgname-$version
mv -v $destdir/usr/doc $destdir/usr/share/doc
mv -v $destdir/usr/man $destdir/usr/share/man
mv -v ${DESTDIR}/usr/doc ${DESTDIR}/usr/share/doc
mv -v ${DESTDIR}/usr/man ${DESTDIR}/usr/share/man
}