abuild: use apk version --check to verify the pkgver
This commit is contained in:
parent
482d9bf5af
commit
a3dca8d66a
|
@ -95,8 +95,8 @@ sanitycheck() {
|
|||
[ -z "$pkgname" ] && die "Missing pkgname in APKBUILD"
|
||||
[ -z "${pkgname##* *}" ] && die "pkgname contains spaces"
|
||||
[ -z "$pkgver" ] && die "Missing pkgver in APKBUILD"
|
||||
[ "${pkgver##[0-9]}" == "$pkgver" ] && \
|
||||
die "pkgver does not start with a digit"
|
||||
apk version --check -q "$pkgver" ||\
|
||||
die "$pkgver is not a valid version"
|
||||
[ -z "$pkgrel" ] && warning "Missing pkgrel in APKBUILD. Using pkgrel=0"
|
||||
[ -z "$pkgdesc" ] && die "Missing pkgdesc in APKBUILD"
|
||||
[ -z "$url" ] && die "Missing url in APKBUILD"
|
||||
|
|
Loading…
Reference in New Issue