Package Details: normez r161.574a98a-1

Git Clone URL: https://aur.archlinux.org/normez.git (read-only)
Package Base: normez
Description: Coding-style checker for Epitech students.
Upstream URL: https://github.com/ronanboiteau/NormEZ
Licenses: MIT
Submitter: Hapique
Maintainer: Hapique
Last Packager: Hapique
Votes: 1
Popularity: 0.000129
First Submitted: 2018-03-25 00:57
Last Updated: 2019-03-10 17:58

Dependencies (2)

Required by (0)

Sources (1)

Latest Comments

Hapique commented on 2019-03-26 15:44

thanks for your help, I'll try to update it as soon as I can

alter2000 commented on 2019-03-10 18:39

When reinstalling/updating the current PKGBUILD fails during the pkgver call.

>  git clone <https://github.com/ronanboiteau/NormEZ.git> "$pkgname"

This causes problems as pkgver has already cloned the repo on the first run and git complains since there's already a folder named "$pkgname", not to mention the fact that you are cloning the repo twice (hint: source=("$pkgname::proto:path") to force git to download the repo to $pkgname).

Check this gist out for a working PKGBUILD.

alter2000 commented on 2018-12-30 21:32

The pkgver() function returns nothing and stops makepkg, so either remove it or add a (hopefully) more usable one. I think the package should be named accordingly (normez-git), should upstream start to use the dev branch again. Anyway, thanks!

cd "$pkgname"

if git_version=$( git describe --long --tags 2>/dev/null ); then
    IFS='-' read last_tag tag_rev commit <<< "$git_version"
    printf '%s.r%s.%s' "$last_tag" "$tag_rev" "$commit"
else
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
fi