diff options
-rw-r--r-- | .SRCINFO | 23 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 40 |
3 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..98e0f33f1a82 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +pkgbase = key-rack-git + pkgdesc = Key Rack allows to view and edit keys, like passwords or tokens, stored by apps + pkgver = r128.11f7f14 + pkgrel = 1 + url = https://gitlab.gnome.org/sophie-h/key-rack + arch = arm + arch = armv6h + arch = armv7h + arch = aarch64 + arch = i686 + arch = x86_64 + license = GPL-3.0-or-later + makedepends = git + makedepends = meson + makedepends = rust + depends = libadwaita + provides = key-rack + conflicts = key-rack + options = !debug + source = key-rack::git+https://gitlab.gnome.org/sophie-h/key-rack.git + b2sums = SKIP + +pkgname = key-rack-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..f71c635dafda --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +* +!.gitignore +!PKGBUILD +!.SRCINFO diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0919bf108605 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: "Amhairghin" Oscar Garcia Amor (https://ogarcia.me) + +_pkgname=key-rack +pkgname=key-rack-git +pkgver=r128.11f7f14 +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=('git' 'meson' 'rust') +conflicts=('key-rack') +provides=('key-rack') +options=('!debug') +source=("${_pkgname}::git+https://gitlab.gnome.org/sophie-h/${_pkgname}.git") +b2sums=('SKIP') + +pkgver() { + cd "${_pkgname}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd "${_pkgname}" + export RUSTUP_TOOLCHAIN=stable + cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" +} + +build() { + cd "${_pkgname}" + export RUSTUP_TOOLCHAIN=stable + arch-meson . build + meson compile -C build +} + +package() { + cd "${_pkgname}" + meson install -C build --destdir "${pkgdir}" +} |