Commit 59bcc571 authored by Natanael Copa's avatar Natanael Copa

rename makedepends to splitfuncs

parent fe74ef1b
......@@ -137,7 +137,7 @@ clean() {
rm -rf "$srcdir"
rm -rf "$pkgdir"
local i
for i in $subpackages; do
for i in $splitfuncs; do
rm -rf "$pkgdir-$i"
done
}
......@@ -157,7 +157,7 @@ cleanpkg() {
local p="$pkgname-$pkgver-$pkgrel"
rm -f "$PKGDEST/$p.apk" "$PKGDEST/$p.src.tar.gz"
local i
for i in $subpackages; do
for i in $splitfuncs; do
INSUB=1 subpkgdir="$pkgdir-$i" $0 $i cleanpkg
done
}
......@@ -174,10 +174,10 @@ build() {
}
subpkg() {
[ -z "$subpackages" ] && return 0
[ -z "$splitfuncs" ] && return 0
local i
cd "$startdir"
for i in $subpackages; do
for i in $splitfuncs; do
INSUB=1 subpkgdir="$pkgdir-$i" $0 $i package || return 1
done
}
......@@ -248,7 +248,7 @@ package() {
package_apk
}
# predefined subpackage doc
# predefined splitfunc doc
doc() {
pkgname="$pkgname-doc"
depends=""
......@@ -267,7 +267,7 @@ doc() {
return 0
}
# predefined subpackage mod
# predefined splitfunc mod
mod() {
pkgname="$pkgname-mod"
depends="$kernel"
......@@ -280,7 +280,7 @@ mod() {
done
}
# predefined subpackage dev
# predefined splitfunc dev
dev() {
depends="$pkgname"
pkgname="$pkgname-dev"
......@@ -377,8 +377,8 @@ shift $(( $OPTIND - 1 ))
[ -f "$APKBUILD" ] || die "Could not find $APKBUILD (PWD=$PWD)"
. "$APKBUILD"
# If we are handling a sub package then reset subpackages
[ -n "$INSUB" ] && subpackages=
# If we are handling a sub package then reset splitfuncs
[ -n "$INSUB" ] && splitfuncs=
trap 'die "Aborted by user"' INT
......
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