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

abuild: add depends_{doc,mod,dev} to depends in doc(),mod(),dev()

parent b446f1bd
...@@ -308,7 +308,7 @@ package() { ...@@ -308,7 +308,7 @@ package() {
# predefined splitfunc doc # predefined splitfunc doc
doc() { doc() {
depends="" depends="$depends_doc"
local i local i
for i in doc man info html sgml; do for i in doc man info html sgml; do
if [ -d "$pkgdir/usr/share/$i" ]; then if [ -d "$pkgdir/usr/share/$i" ]; then
...@@ -332,7 +332,7 @@ doc() { ...@@ -332,7 +332,7 @@ doc() {
# predefined splitfunc mod # predefined splitfunc mod
mod() { mod() {
depends="$kernel" 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
rm -rf "$subpkgdir/lib" rm -rf "$subpkgdir/lib"
...@@ -344,7 +344,7 @@ mod() { ...@@ -344,7 +344,7 @@ mod() {
# predefined splitfunc dev # predefined splitfunc dev
dev() { dev() {
depends="$pkgname" depends="$pkgname $depends_dev"
cd "$pkgdir" || return 0 cd "$pkgdir" || return 0
for i in cd $(find usr/lib -name '*.a' -o \ for i in cd $(find usr/lib -name '*.a' -o \
-name '*.la' -o -name '*.o' 2>/dev/null) \ -name '*.la' -o -name '*.o' 2>/dev/null) \
......
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