diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-07-24 09:24:42 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-07-24 09:24:42 +0000 |
commit | 28b7f5d2b11f20390e6e7da46a3e97cd11e06a9e (patch) | |
tree | 243cee38f3da0e57c836c0fc36a4380d3445f46c /abuild.in | |
parent | 53b17143d2414589d2481f60748180dcdb0197f0 (diff) | |
download | abuild-28b7f5d2b11f20390e6e7da46a3e97cd11e06a9e.tar.gz abuild-28b7f5d2b11f20390e6e7da46a3e97cd11e06a9e.tar.bz2 abuild-28b7f5d2b11f20390e6e7da46a3e97cd11e06a9e.tar.xz abuild-28b7f5d2b11f20390e6e7da46a3e97cd11e06a9e.zip |
abuild: add pkgconfig to depends if needed. misc fixes
Diffstat (limited to 'abuild.in')
-rwxr-xr-x | abuild.in | 20 |
1 files changed, 19 insertions, 1 deletions
@@ -427,6 +427,12 @@ trace_apk_deps() { for i in $autodeps; do echo "depend = $i" >> "$dir"/.PKGINFO done + # add pkgconfig if usr/lib/pkgconfig is found + if [ -d "$pkgbasdir"/$name/usr/lib/pkgconfig ] \ + && ! grep -q '^depend = pkgconfig' "$dir"/.PKGINFO; then + msg "Added pkgconfig as dependency" + echo "depend = pkgconfig" >> "$dir"/.PKGINFO + fi } create_apks() { @@ -443,7 +449,12 @@ create_apks() { ( cd "$datadir" # data.tar.gz - tar -c . | abuild-tar --hash | gzip -9 >"$dir"/data.tar.gz + set -- * + if [ "$1" = '*' ]; then + touch .dummy + set -- .dummy + fi + tar -c "$@" | abuild-tar --hash | gzip -9 >"$dir"/data.tar.gz # append the hash for data.tar.gz local sha256=$(sha256sum "$dir"/data.tar.gz | cut -f1 -d' ') @@ -727,6 +738,13 @@ builddeps() { fi [ -z "$recursive" ] && return 1 + + # find dependencies that are installed but missing in repo. + for i in $deps; do + if [ -z "$(apk search --repo "$apkcache" $i)" ]; then + missing="$missing $i" + fi + done for i in $(deptrace $missing); do # i = pkg:dir |