summaryrefslogtreecommitdiffstats
path: root/bin/modpkg
diff options
context:
space:
mode:
Diffstat (limited to 'bin/modpkg')
-rwxr-xr-xbin/modpkg8
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/modpkg b/bin/modpkg
index f1c8c90..cc3f234 100755
--- a/bin/modpkg
+++ b/bin/modpkg
@@ -7,7 +7,8 @@ set pbfields {pkgname pkgver pkgrel pkgdesc pkgbase
groups arch backup
depends makedepends checkdepends optdepends
conflicts provides replaces
- options}
+ options
+ dir ver}
set pbfuncs {build check package}
set dotfuncs {pre_install post_install
pre_upgrade post_upgrade
@@ -167,5 +168,10 @@ foreach name $pbfields {
set pkgdata($name) [$modi eval set $name]
}
}
+if {[info exists pkgdata(customvars)]} {
+ foreach cvar $pkgdata(customvars) {
+ set pkgdata($cvar) [$modi eval set $cvar]
+ }
+}
printfields stdout