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:
parent
529cb677ff
commit
84222395b8
90 changed files with 535 additions and 735 deletions
|
@ -20,8 +20,6 @@ Add_dependency run klibc
|
|||
|
||||
do_install()
|
||||
{
|
||||
local destdir=$XBPS_DESTDIR/$pkgname-$version
|
||||
|
||||
cd $wrksrc
|
||||
CFLAGS="-O2 -DCONFIG_NO_BACKWARDS_COMPAT" \
|
||||
CC=klcc LD=klcc ./configure --prefix=
|
||||
|
@ -29,8 +27,8 @@ do_install()
|
|||
sed 's|getc_unlocked|getc|g' -i *.c
|
||||
make || return 1
|
||||
|
||||
install -d ${destdir}/usr/lib/klibc/sbin
|
||||
install -d ${DESTDIR}/usr/lib/klibc/sbin
|
||||
for f in depmod modinfo modprobe insmod lsmod rmmod; do
|
||||
install -s -m755 ${f} ${destdir}/usr/lib/klibc/sbin
|
||||
install -s -m755 ${f} ${DESTDIR}/usr/lib/klibc/sbin
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue