Commit 0e9c2e70 authored by Natanael Copa's avatar Natanael Copa

abuild: support for variable options

so far only option avaiable is !strip, which disables stripping of binaries.
parent b9685a9f
......@@ -315,7 +315,7 @@ EOF
}
package() {
stripbin
options_has "!strip" || stripbin
package_apk
}
......@@ -558,6 +558,21 @@ subpackages_has() {
return 1
}
list_has() {
local needle="$1"
local i
shift
for i in $@; do
[ "$needle" = "$i" ] && return 0
[ "$needle" = "!$i" ] && return 1
done
return 1
}
options_has() {
list_has "$1" $options
}
# install package after build
post_add() {
local pkgf="$PKGDEST/$1-$pkgver-r$pkgrel.apk"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment