summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-09-04 13:37:26 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-09-04 13:37:26 +0000
commit76e93e602f74e0fcf8cfc708fd93b4f71b74781e (patch)
treeb3f27014e1faaa3a7727a534207aefeffb466f5c
parent87953c711587b932fb8e9f95798a0907faaaecf6 (diff)
downloadabuild-76e93e602f74e0fcf8cfc708fd93b4f71b74781e.tar.gz
abuild-76e93e602f74e0fcf8cfc708fd93b4f71b74781e.tar.bz2
abuild-76e93e602f74e0fcf8cfc708fd93b4f71b74781e.tar.xz
abuild-76e93e602f74e0fcf8cfc708fd93b4f71b74781e.zip
abuild: add provides information
-rwxr-xr-xabuild.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/abuild.in b/abuild.in
index 3acec46..207cc66 100755
--- a/abuild.in
+++ b/abuild.in
@@ -919,8 +919,11 @@ trace_apk_deps() {
fi
done
- [ -z "$autodeps" ] && return 0
echo "# automatically detected:" >> "$dir"/.PKGINFO
+ if [ -f "$dir"/.provides-so ]; then
+ sed 's/^/provides = /' "$dir"/.provides-so >> "$dir"/.PKGINFO
+ fi
+ [ -z "$autodeps" ] && return 0
for i in $autodeps; do
echo "depend = $i" >> "$dir"/.PKGINFO
done