Package Details: calamares-git 3.2.55.r9930.c70deed13-1

Git Clone URL: https://aur.archlinux.org/calamares-git.git (read-only, click to copy)
Package Base: calamares-git
Description: Distribution-independent installer framework (development version)
Upstream URL: https://github.com/calamares/calamares
Keywords: calamares installer
Licenses: LGPL
Conflicts: calamares, calamares-dev
Provides: calamares, calamares-dev
Replaces: calamares-dev
Submitter: realkstrawn93
Maintainer: realkstrawn93
Last Packager: realkstrawn93
Votes: 3
Popularity: 0.000493
First Submitted: 2022-03-28 16:22 (UTC)
Last Updated: 2022-03-29 14:56 (UTC)

Latest Comments

xiota commented on 2023-09-20 06:54 (UTC)

Please remove replaces directive. Thank you.

xiota commented on 2023-09-12 06:18 (UTC) (edited on 2023-09-12 22:41 (UTC) by xiota)

All instances of $srcdir need to be quoted because the path can contain spaces.

pkgver() is broken. Producing versions like .r10773.6e8e8a3d1-1. Here is a working replacement that produces 3.3.0.r116.g6e8e8a3d1-1:

pkgver() {
  cd "$srcdir/calamares"

  _regex='^set\(CALAMARES_VERSION ([0-9]+\.[0-9]+\.[0-9]+([^0-9].*)?)\)\s*$'
  _file='CMakeLists.txt'

  _line=$(
    grep -E "$_regex" "$_file" \
      | head -1
  )
  _version=$(
    printf '%s' "$_line" | sed -E "s@$_regex@\1@;s@alpha@a@;s@beta@b@;s@-@.@"
  )
  _line=$(
    printf '%s' "$_line" \
      | sed -E 's@\(@\\(@;s@\)@\\)@'
  )
  _commit=$(
    git log -G "$_line" -1 --pretty=oneline --no-color | sed 's@\ .*$@@'
  )
  _revision=$(
    git rev-list --count $_commit..HEAD
  )
  _hash=$(
    git rev-parse --short HEAD
  )

  printf '%s.r%s.g%s' \
    "$_version" \
    "$_revision" \
    "$_hash"
}