Package Details: cmd-polkit-git r132.be964ed-1

Git Clone URL: https://aur.archlinux.org/cmd-polkit-git.git (read-only, click to copy)
Package Base: cmd-polkit-git
Description: Command line tool for custom polkit agent UIs
Upstream URL: https://github.com/OmarCastro/cmd-polkit
Licenses: MIT
Submitter: czaplicki
Maintainer: czaplicki
Last Packager: czaplicki
Votes: 0
Popularity: 0.000000
First Submitted: 2022-05-24 15:32 (UTC)
Last Updated: 2024-04-10 21:39 (UTC)

Latest Comments

djsigmann commented on 2024-06-23 22:18 (UTC) (edited on 2024-06-23 22:19 (UTC) by djsigmann)

The comment below has flaws, this should fix the PKGBUILD: https://gist.github.com/djsigmann/dc587255dc026df193680186a69ef5c4

LeoFa commented on 2024-05-01 09:25 (UTC)

Hi, your PKGBUILD doesn´t compile; has trouble finding the source directory; not an expert but fixed it with chatgpt; the relevant chat; https://chat.openai.com/share/47558139-a79a-48a3-a45a-02712597fa2f.

updated PKGBUILD

# Maintainer: czaplicki <dev dot czaplicki at icloud dot com>
pkgname='cmd-polkit-git'
pkgver=r132.be964ed
pkgrel=1
pkgdesc="Command line tool for custom polkit agent UIs"
arch=('x86_64')
url="https://github.com/OmarCastro/cmd-polkit"
license=('MIT')
depends=('glib2' 'json-glib' 'polkit' 'gtk3')
makedepends=('git' 'meson')
source=("git+https://github.com/OmarCastro/cmd-polkit.git")
md5sums=('SKIP')

pkgver() {
  cd "${srcdir}/${pkgname}" || return 1
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  cd "${srcdir}"
  git clone "${url}" "${pkgname}"
}

build() {
  arch-meson "${srcdir}/${pkgname}" "${pkgname}-build"
  meson compile -C "${srcdir}/${pkgname}-build"
}

package() {
  meson install -C "${srcdir}/${pkgname}-build" --destdir "$pkgdir"
  install -Dm644 "${srcdir}/${pkgname}/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}