mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2024-12-24 07:52:30 +00:00
always add revision number to filename
This commit is contained in:
parent
fb0cc76aa5
commit
ec3f3eaf61
11
abuild
11
abuild
@ -186,16 +186,7 @@ subpkg() {
|
|||||||
package_apk() {
|
package_apk() {
|
||||||
[ -z "${pkgname##* *}" ] && die "pkgname contains spaces"
|
[ -z "${pkgname##* *}" ] && die "pkgname contains spaces"
|
||||||
local dir=${subpkgdir:-$pkgdir}
|
local dir=${subpkgdir:-$pkgdir}
|
||||||
local p="$pkgname-$pkgver"
|
local pkg="$pkgname-$pkgver-$pkgrel.apk"
|
||||||
[ "$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"
|
|
||||||
|
|
||||||
[ ! -d "$dir" ] && die "Missing $dir"
|
[ ! -d "$dir" ] && die "Missing $dir"
|
||||||
cd "$dir"
|
cd "$dir"
|
||||||
|
Loading…
Reference in New Issue
Block a user