Package Details: birdtray-git latest-1

Git Clone URL: https://aur.archlinux.org/birdtray-git.git (read-only)
Package Base: birdtray-git
Description: Run Thunderbird with a system tray icon.
Upstream URL: https://github.com/gyunaev/birdtray
Licenses: GPL
Conflicts: birdtray
Provides: birdtray
Submitter: jonathon
Maintainer: jonathon
Last Packager: jonathon
Votes: 1
Popularity: 0.286755
First Submitted: 2018-09-23 11:06
Last Updated: 2018-10-12 15:26

Dependencies (3)

Required by (0)

Sources (1)

Latest Comments

Kr1ss commented on 2018-10-12 16:01

Great ! Ty for the quick fix.

jonathon commented on 2018-10-12 15:26

Oops. That's what happens when I base the VCS package on the standard package rather than the other way round... :/

Fixed now.

Kr1ss commented on 2018-10-12 14:39

Thx @jonathon, great package.

Sadly, the current PKGBUILD just labels each version "latest". So, despite of this being a VCS-package, the pkgver won't be changed after an upstream commit and a rebuild, thus makepkg/pacman won't recognize that the package has actually changed.

Would u mind adding a pkgver() function to the PKGBUILD, e.g. something like :

diff --git i/PKGBUILD w/PKGBUILD
index cecb4cd..b50f9cf 100644
--- i/PKGBUILD
+++ w/PKGBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Jonathon Fernyhough <jonathon_at_manjaro dot+org>

 pkgname=birdtray-git
-pkgver=latest
+pkgver=r62.250eeb4
 pkgrel=1
 pkgdesc="Run Thunderbird with a system tray icon."
 arch=('i686' 'x86_64' 'armv7h' 'armv6h' 'aarch64')
@@ -14,6 +14,11 @@ provides=(${pkgname/-git/})
 source=("git+https://github.com/gyunaev/${pkgname/-git/}.git")
 sha1sums=(SKIP)

+pkgver() {
+   cd "$srcdir/${pkgname/-git}"
+   printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
 build() {
   mkdir -p build && cd build
   qmake-qt5 ../${pkgname/-git/}/src

That would increase the version number with every commit, and append the hash ID of that commit.