Package Details: key-rack 0.4.0-1

Git Clone URL: https://aur.archlinux.org/key-rack.git (read-only, click to copy)
Package Base: key-rack
Description: View and edit app secrets
Upstream URL: https://gitlab.gnome.org/sophie-h/key-rack
Licenses: GPL-3.0-or-later
Submitter: yochananmarqos
Maintainer: yochananmarqos
Last Packager: yochananmarqos
Votes: 1
Popularity: 0.012584
First Submitted: 2024-01-13 18:26 (UTC)
Last Updated: 2024-07-26 17:39 (UTC)

Latest Comments

yochananmarqos commented on 2024-01-17 15:42 (UTC)

@ogarcia:

  • 0fdfa458 is version 0.3.0 on FlatHub, but hasn't been tagged yet. If you want to use a later commit, create a VCS package.
  • I'm only updating licenses as I update packages. Arch has barely begun the large endeavor themselves.
  • Using local caches is preferred as not to clutter up a user's home directory. One can keep the $srcdir for later if they wish.
  • Upstream does not build with the --frozen option, so fetching with --locked is pointless. When Meson is run, it will update the lockfile regardless.
  • I will not add other architectures unless upstream specifically supports them and/or they are tested.

Avoid pasting patches or PKGBUILDs into the comments section: they quickly become obsolete and just end up needlessly taking up lots of space. Instead, email those files to the maintainer, or even use a pastebin.

-- https://wiki.archlinux.org/title/Arch_User_Repository#Commenting_on_packages

ogarcia commented on 2024-01-17 08:30 (UTC)

@yochananmarqos some notes on the construction of the package:

  • The version commit is 696fdf7198dccb01fc569f815c5c5c81f51afed3c0 (which gets you around the problem with oo7).
  • The license is not GPL, it is "GPL-3.0-or-later" (see here and in repo for more info).
  • As a source do not use git+https, use only https instead, so you can skip git as makedepend and also you can put checksum to the package.
  • Do not override CARGO_HOME, with that the only thing you get is that the user downloads again things that he/she can already have (see here).
  • In the cargo fetch it uses better cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')", so it can be compiled on any platform, not only on x64.
  • Related to the above, it can support more platforms arch=('arm' 'armv6h' 'armv7h' 'aarch64' 'i686' 'x86_64').

I leave here a complete pkgbuild with these suggestions in case you just want to copy paste.

_commit="696fdf7198dccb01fc569f815c5c81f51afed3c0" # 0.3.0
pkgname=key-rack
pkgver=0.3.0
pkgrel=1
pkgdesc='Key Rack allows to view and edit keys, like passwords or tokens, stored by apps'
arch=('arm' 'armv6h' 'armv7h' 'aarch64' 'i686' 'x86_64')
url='https://gitlab.gnome.org/sophie-h/key-rack'
license=('GPL-3.0-or-later')
depends=('libadwaita')
makedepends=('meson' 'rust')
source=("${pkgname}-${pkgver//+/-}.tar.gz::https://gitlab.gnome.org/sophie-h/${pkgname}/-/archive/${_commit}/${pkgname}-${_commit}.tar.bz2")
b2sums=('ea4c7583e6cbad290fd72dd0d90abce70b0bd7809340e7c78b8c4d1989c5016f976a53dfee2754c51c93b1e4c218fff973e373c426374eeece1f9573b544b252')

prepare() {
  cd "${pkgname}-${_commit}"
  export RUSTUP_TOOLCHAIN=stable
  cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}

build() {
  cd "${pkgname}-${_commit}"
  export RUSTUP_TOOLCHAIN=stable
  arch-meson . build
  meson compile -C build
}

package() {
  cd "${pkgname}-${_commit}"
  meson install -C build --destdir "${pkgdir}"
}