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

abuild: rename {dev,doc,mod} funcs to default_{dev,doc,mod}

This allows ABUILDS to call the default_doc func and append stuff missing
parent 6c52b391
...@@ -327,7 +327,7 @@ package() { ...@@ -327,7 +327,7 @@ package() {
} }
# predefined splitfunc doc # predefined splitfunc doc
doc() { default_doc() {
depends="$depends_doc" depends="$depends_doc"
local i local i
for i in doc man info html sgml licenses; do for i in doc man info html sgml licenses; do
...@@ -350,8 +350,12 @@ doc() { ...@@ -350,8 +350,12 @@ doc() {
return 0 return 0
} }
doc() {
default_doc
}
# predefined splitfunc mod # predefined splitfunc mod
mod() { default_mod() {
depends="$kernel $depends_mod" depends="$kernel $depends_mod"
for i in firmware modules; do for i in firmware modules; do
if [ -d "$pkgdir/lib/$i" ]; then if [ -d "$pkgdir/lib/$i" ]; then
...@@ -362,8 +366,12 @@ mod() { ...@@ -362,8 +366,12 @@ mod() {
done done
} }
mod() {
default_mod
}
# predefined splitfunc dev # predefined splitfunc dev
dev() { default_dev() {
depends="$pkgname $depends_dev" depends="$pkgname $depends_dev"
cd "$pkgdir" || return 0 cd "$pkgdir" || return 0
for i in usr/include usr/lib/pkgconfig usr/share/aclocal\ for i in usr/include usr/lib/pkgconfig usr/share/aclocal\
...@@ -381,6 +389,10 @@ dev() { ...@@ -381,6 +389,10 @@ dev() {
return 0 return 0
} }
dev() {
default_dev
}
# build and package in fakeroot # build and package in fakeroot
rootpkg() { rootpkg() {
cd "$startdir" cd "$startdir"
......
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