summary refs log tree commit diff
path: root/lib2.sh
diff options
context:
space:
mode:
Diffstat (limited to 'lib2.sh')
-rw-r--r--lib2.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib2.sh b/lib2.sh
index ea7cbe0..a4e3cea 100644
--- a/lib2.sh
+++ b/lib2.sh
@@ -1,3 +1,4 @@
+[ -z "$pkgcat" ] && error "pkgcat unset"
 [ -z "$pkgname" ] && error "pkgname unset"
 [ -z "$version" ] && error "version unset"
 
@@ -13,7 +14,7 @@ configure_args="--prefix=/usr --sysconfdir=/etc --sbindir=/usr/bin --bindir=/usr
 : ${LDFLAGS:=-Wl,-z,relro -Wl,-z,now}
 : ${make_install_target:=install}
 : ${make_install_args:=}
-: ${DESTDIR:=/dst/$pkgname/$version}
+: ${DESTDIR:=/dst/$pkgcat/$pkgname/$version}
 
 for s in fetch extract configure build check install; do
   verbose pre_$s