Commit 2097dd6d authored by Leo's avatar Leo

Fix tag name and add support for checking uppercase characters in

pkgname=
parent 6e0c72e1
......@@ -77,7 +77,7 @@ The APKBUILD has duplicate checkdepends. One of them must be removed.
Declaring duplicate dependencies is superfluous.
## pkgname_dirname_mismatch
## pkgname-dirname-mismatch
The pkgname variable of the APKBUILD has value *foo* but the directory in which the
APKBUILD is found is not named *foo*
......@@ -170,3 +170,7 @@ Staring with v3.3.0 of *abuild* the *prepare*, *build*, *check* and *package*
functions automatically have their working directory set to the value of
*builddir*. It is also possible that there are 2 *cd "$builddir"* statements
one after the other.
## pkgname-has-uppercase-characters
pkgname has uppercase characters, pkgname must have only lowercase characters.
......@@ -173,6 +173,11 @@ superfluous_cd_builddir() {
IFS="$OLDIFS"
}
pkgname_has_uppercase() {
[ "$SKIP_PKGNAME_HAS_UPPERCASE" ] && return 0
scan '^pkgname=*[A-Z]*' 'pkgname must not have uppercase characters'
}
ret=0
for apkbuild; do
if [ -f "$apkbuild" ]; then
......@@ -193,6 +198,7 @@ for apkbuild; do
space_before_function_parenthesis &
space_after_function_parenthesis &
newline_opening_brace &
pkgname_has_uppercase &
# Don't perform these checks on packages from main
if ! [ -z "${apkbuild##*main/*}" ]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment