Package Details: demlo-git 2018.02.13.g0317d78-1

Git Clone URL: https://aur.archlinux.org/demlo-git.git (read-only, click to copy)
Package Base: demlo-git
Description: A dynamic and extensible music library organizer
Upstream URL: https://github.com/Ambrevar/demlo/
Licenses: MIT
Submitter: Ambrevar
Maintainer: None
Last Packager: Ambrevar
Votes: 0
Popularity: 0.000000
First Submitted: 2018-02-17 20:45 (UTC)
Last Updated: 2018-02-19 16:59 (UTC)

Latest Comments

MarsSeed commented on 2022-02-11 13:04 (UTC)

Please kindly use tag-based git versioning (using git describe).

You will have to introduce epoch 1 to inform the package manager that the resulting version number corresponds to a newer package version (otherwise it would conclude 2018 > v3.8.r0.g21742d3):

epoch=1

pkgver() {
    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

Also source has been migrated to GitLab, please kindly update to that:

https://gitlab.com/ambrevar/demlo.git

runical commented on 2018-02-20 10:40 (UTC) (edited on 2018-02-20 10:49 (UTC) by runical)

It does. Thank you for the quick response!

E: One last nag, but this should conflict with demlo and provide demlo to make sure you can't install both at the same time and replace demlo when needed as a dependency.

Ambrevar commented on 2018-02-19 16:52 (UTC)

Thanks for reporting, the folder was wrong indeed. It should be working now.

runical commented on 2018-02-19 12:45 (UTC) (edited on 2018-02-19 12:52 (UTC) by runical)

I tried building this in a clean chroot, but it fails with the following message:

==> ERROR: pkgver is not allowed to contain colons, hyphens or whitespace.

==> ERROR: pkgver() generated an invalid version: fatal: Not a git repository (or any of the parent directories): .git

I have no idea where it tries to go and why this doesn't work in a clean chroot, but unfortunately it doesn't. Do you maybe have an idea what's amiss?

EDIT: Looking into it a bit more, it seems that the package built outside of chroot generates the package version based on the AUR git repo. The package I get has the following version:

2018.02.17.g7f93c5b

This is the same as the version you get running the version command in the AUR repo.

Running your version command in the demlo repo generates:

2018.02.13.g0317d78

You can look into this yourself and you'll probably find the same thing. So it seems that your version function does not jump to the correct directory.