diff options
Diffstat (limited to 'buildrepo.in')
-rwxr-xr-x | buildrepo.in | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/buildrepo.in b/buildrepo.in index da4e91b..2370db7 100755 --- a/buildrepo.in +++ b/buildrepo.in @@ -33,9 +33,22 @@ usage() { listpackages() { - cd "$aportsdir/$1" + local repo="$1" i= pkgname= pkgver= pkgrel= subpackage= arch= subpkg= + cd "$aportsdir/$repo" for i in */APKBUILD; do - APKBUILD=$i abuild listpkg + cd "$aportsdir/$repo"/${i%/*} || return 1 + pkgname= + pkgver= + pkgrel= + subpackages= + arch= + . ./APKBUILD + if ! is_in all $arch && ! is_in "$CARCH" $arch; then + continue + fi + for subpkg in $pkgname $subpackages; do + echo ${subpkg%:*}-$pkgver-r$pkgrel.apk + done done } |