always add revision number to filename

This commit is contained in:
Natanael Copa 2008-11-06 14:34:36 +00:00
parent fb0cc76aa5
commit ec3f3eaf61

11
abuild
View File

@ -186,16 +186,7 @@ subpkg() {
package_apk() {
[ -z "${pkgname##* *}" ] && die "pkgname contains spaces"
local dir=${subpkgdir:-$pkgdir}
local p="$pkgname-$pkgver"
[ "$pkgrel" -ne 0 ] && p="$p-r$pkgrel"
local pkg="$p.apk"
# local db="$dir/var/db/apk/$p"
# mkdir -p "$db"
# echo "$arch" > "$db/ARCH"
# echo "$pkgdesc" > "$db/DESC"
# echo "$license" > "$db/LICENSE"
# echo "$depends" > "$db/DEPEND"
# echo "$url" > "$db/WWW"
local pkg="$pkgname-$pkgver-$pkgrel.apk"
[ ! -d "$dir" ] && die "Missing $dir"
cd "$dir"