Package Details: libquicktime-git r987.g2213b76-1

Git Clone URL: https://aur.archlinux.org/libquicktime-git.git (read-only, click to copy)
Package Base: libquicktime-git
Description: Library for reading and writing quicktime files
Upstream URL: https://libquicktime.sourceforge.net/
Licenses: LGPL-2.1-or-later
Conflicts: libquicktime
Provides: libquicktime
Submitter: Chocobo1
Maintainer: Chocobo1
Last Packager: Chocobo1
Votes: 0
Popularity: 0.000000
First Submitted: 2020-01-13 13:02 (UTC)
Last Updated: 2025-11-26 06:37 (UTC)

Dependencies (19)

Required by (2)

Sources (1)

Latest Comments

Chocobo1 commented on 2025-11-26 06:31 (UTC) (edited on 2025-11-26 06:31 (UTC) by Chocobo1)

That's great, however only if $pkgver starts with a proper release version. It does not currently (it just starts with r<commit-count>.

I don't see problem with that. As long as the versions are comparable, it doesn't matter what is inside it.

A complete pkgver() which uses that as first part looks like:

Then in your version _rev is calculated wrong. And I don't think there is a way to get the correct value without manual editing.

dreieck commented on 2025-11-25 23:39 (UTC)

Ahoj,

you use provides=("libquicktime=$pkgver") (with =$pkgver). That's great, however only if $pkgver starts with a proper release version. It does not currently (it just starts with r<commit-count>.

However, a proper release version is obtainable:

grep -E '^[[:space:]]*AC_INIT[[:space:]]*\([[:space:]]*\[libquicktime\]' configure.ac | awk -F, '{print $2}' | tr -d '[]'

A complete pkgver() which uses that as first part looks like:

pkgver() {
  cd "git"

  _ver="$(grep -E '^[[:space:]]*AC_INIT[[:space:]]*\([[:space:]]*\[libquicktime\]' configure.ac | awk -F, '{print $2}' | tr -d '[]')"
  _rev=$(git rev-list --count --all)
  _hash=$(git rev-parse --short HEAD)
  printf "%s.r%s.g%s" "$_ver" "$_rev" "$_hash"
}

diff to the current PKGBUILD:

--- PKGBUILD.orig   2025-11-26 00:32:53.312918420 +0100
+++ PKGBUILD    2025-11-26 00:36:12.049587769 +0100
@@ -3,3 +3,3 @@
 pkgname=libquicktime-git
-pkgver=r987.g2213b76
+pkgver=1.2.4.r987.g2213b76
 pkgrel=1
@@ -23,5 +23,6 @@

+  _ver="$(grep -E '^[[:space:]]*AC_INIT[[:space:]]*\([[:space:]]*\[libquicktime\]' configure.ac | awk -F, '{print $2}' | tr -d '[]')"
   _rev=$(git rev-list --count --all)
   _hash=$(git rev-parse --short HEAD)
-  printf "r%s.g%s" "$_rev" "$_hash"
+  printf "%s.r%s.g%s" "$_ver" "$_rev" "$_hash"
 }

I strongly suggest that you update pkgver() accordingly. If not, you should remove =$pkgver from the provides array.

Regards and thanks for this package!