I had problems building a remote with a hyphen. This is how I fixed it:
diff --git a/PKGBUILD b/PKGBUILD
index 31df133..47da6f9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,7 +6,7 @@
# will be on config.extra file.
pkgbase=linux-git
-pkgver=v6.4.rc3.r291.4e893b5aa4ac
+pkgver=v6.4.r12278.3bc551a3007a.linusw.linux.pinctrl
pkgrel=1
pkgdesc="Linus Torvalds' Mainline Linux"
url="https://www.kernel.org"
@@ -67,7 +67,7 @@ pkgver() {
cd "$srcdir/$_srcname"
if [[ -n "$REMOTE_URL" ]]; then
# if $REMOTE_URL was created, it's safe to use $REMOTE
- printf "%s" "$(git describe --dirty=-patched --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g').${REMOTE/\//.}"
+ printf "%s" "$(git describe --dirty=-patched --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g').${REMOTE//[\/-]/.}"
else
printf "%s" "$(git describe --dirty=-patched --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
fi
Pinned Comments
osimarr commented on 2023-05-07 22:27 (UTC) (edited on 2023-05-12 04:05 (UTC) by osimarr)
Hi. Since the package became an orphan, I adopted it to continue what I actively maintain on https://aur.archlinux.org/pkgbase/linux-mainline-git, now on this AUR package.
The build script and config file will be up-to-date with Arch's official Linux package unless an update is required to be functional.
But I intentionally removed the documentation package because it consumes too much building time.
This package supports certain customization if compiled by the user. Check for the README file inside the package repo, or the .INSTALL message after package installation to learn how.