Package Details: eeshow-git 71c9248-1

Git Clone URL: https://aur.archlinux.org/eeshow-git.git (read-only, click to copy)
Package Base: eeshow-git
Description: An application for viewing git-managed eeschemas
Upstream URL: https://neo900.org/stuff/eeshow/
Keywords: kicad pcb
Licenses: GPL2
Conflicts: eeshow
Provides: eeshow
Submitter: Houkime
Maintainer: Houkime
Last Packager: Houkime
Votes: 1
Popularity: 0.000000
First Submitted: 2018-03-26 23:43 (UTC)
Last Updated: 2018-03-26 23:43 (UTC)

Latest Comments

dreieck commented on 2022-11-14 07:48 (UTC)

.. updated PKGBUILD that adresses the previously mentioned issues: → Here.

diff with respect to the current PKGBUILD:

--- PKGBUILD.org    2022-11-14 08:47:10.539945461 +0100
+++ PKGBUILD    2022-11-14 08:42:48.509953657 +0100
@@ -5,3 +5,4 @@
 _pkgname=eeshow
-pkgver=71c9248
+epoch=1
+pkgver=r774.20170731.71c9248
 pkgrel=1
@@ -12,5 +13,6 @@
 depends=(imagemagick cairo gtk3 libgit2 fig2dev)
+makedepends=('git')
 provides=('eeshow')
 conflicts=('eeshow')
-source=('git+http://neo900.org/git/eeshow')
+source=("${_pkgname}::git+https://gitlab.com/neo900/eeshow.git")
 sha1sums=('SKIP')
@@ -18,4 +20,14 @@
 pkgver() {
-   cd "$srcdir/$_pkgname"
-  git rev-parse --short HEAD # Github-like shortened hash
+  cd "$srcdir/$_pkgname"
+  _rev="$(git rev-list --count HEAD)"
+  _date="$(git log -1 --date=format:"%Y%m%d" --format="%ad")"
+  _hash="$(git rev-parse --short HEAD)"
+
+  if [ -z "${_rev}" ]; then
+    error "Git commit count could not be determined."
+    return 1
+  else
+    printf '%s' "r${_rev}.${_date}.${_hash}"
+  fi
+
 }

Consider to apply the changes or draft your own fixes.

Regards!

dreieck commented on 2022-11-14 07:37 (UTC) (edited on 2022-11-14 07:39 (UTC) by dreieck)

Ahoj, thanks for the package.

There are some issues with your package:

  • git needs to be in makedepends.
  • You use a git commit hash as the main $pkgver. However, $pkgver needs to be strongly monotoneously increasing with each upstream commit. Please change pkgver() accordingly. (Preferably, get official release version first, then you can follow .r<commit count> and then optionally hash. I also use last commit date for informational purpuses. If you cannot determine any official version number, just use r<commit count> as the first part of the $pkgver.)
  • Since that changes the versioning scheme drastically, you need to increment $epoch, too.
  • Source cannot be downloaded:
-> Cloning eeshow git repo...
Cloning into bare repository '/home/felics/.cache/yay/eeshow-git/eeshow'...
fatal: unable to update url base from redirection:
  asked for: http://neo900.org/git/eeshow/info/refs?service=git-upload-pack
   redirect: https://gitlab.com/neo900
==> ERROR: Failure while downloading eeshow git repo

Looks like you need to use git+https://gitlab.com/neo900/eeshow.git.

Thanks for maintaining!