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:
@@ -16,14 +16,12 @@ Add_dependency run glibc
|
||||
|
||||
do_install()
|
||||
{
|
||||
local destdir=$XBPS_DESTDIR/$pkgname-$version
|
||||
|
||||
mkdir -p ${destdir}/sbin
|
||||
mkdir -p ${destdir}/usr/share/man/man8
|
||||
mkdir -p ${DESTDIR}/sbin
|
||||
mkdir -p ${DESTDIR}/usr/share/man/man8
|
||||
|
||||
cd $XBPS_TEMPLATESDIR/rcorder/files
|
||||
make || exit 1
|
||||
install -m755 ./rcorder ${destdir}/sbin
|
||||
install -m644 ./rcorder.8 ${destdir}/usr/share/man/man8
|
||||
install -m755 ./rcorder ${DESTDIR}/sbin
|
||||
install -m644 ./rcorder.8 ${DESTDIR}/usr/share/man/man8
|
||||
make clean
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user