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:
@@ -22,9 +22,7 @@ Add_dependency run glibc
|
||||
|
||||
post_install()
|
||||
{
|
||||
local destdir=$XBPS_DESTDIR/$pkgname-$version
|
||||
|
||||
# Most programs expect /usr/bin/env.
|
||||
install -d ${destdir}/usr/bin
|
||||
cd ${destdir}/usr/bin && ln -s ../../bin/env .
|
||||
install -d ${DESTDIR}/usr/bin
|
||||
cd ${DESTDIR}/usr/bin && ln -s ../../bin/env .
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user