Package Details: newm-next-git r765.dd9097f-1

Git Clone URL: https://aur.archlinux.org/newm-next-git.git (read-only, click to copy)
Package Base: newm-next-git
Description: newm-next Wayland compositor
Upstream URL: https://github.com/newm-next/newm-next
Licenses: MIT
Conflicts: newm, newm-atha-git, newm-git
Provides: newm
Submitter: L0Wigh
Maintainer: L0Wigh
Last Packager: L0Wigh
Votes: 0
Popularity: 0.000000
First Submitted: 2024-11-06 14:04 (UTC)
Last Updated: 2025-02-20 11:03 (UTC)

Latest Comments

A43 commented on 2025-02-19 21:05 (UTC)

This is versioned in an unusual way for -git packages. The following patch fixes this issue by setting the pkgver variable in a standard way for this type of package. This may also fix the minor annoyance that some AUR helpers will repeatedly reinstall this package every time they are used to upgrade the system (which was why I noticed this issue in the first place).

diff --git a/PKGBUILD b/PKGBUILD
index 4ee4c19..9eff820 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,9 @@
 # newm - Wayland compositor
 # Maintainer: L0Wigh <mathiotthomas@gmail.com>

+_pkgname=newm-next
 pkgname=newm-next-git
-pkgver=0.4.2
+pkgver=r765.dd9097f
 pkgrel=1
 license=('MIT')
 pkgdesc="newm-next Wayland compositor"
@@ -54,7 +55,11 @@ provides=('newm')
 conflicts=('newm' 'newm-git' 'newm-atha-git')

 pkgver() {
-   echo "0.4.1"
+   cd "$srcdir/$_pkgname"
+   ( set -o pipefail
+       git describe --long --abbrev=7 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
+       printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
+   )
 }
 prepare() {
    cd "$srcdir"/pywm-next

L0Wigh, apologies for the ghost notification earlier today. I accidentally posted this comment before I had finished it.