From 344c57d9ba6bd22b7b50891651d2225e7c44d9a3 Mon Sep 17 00:00:00 2001 From: Kiri <125180256+Kiri2002@users.noreply.github.com> Date: Mon, 25 Mar 2024 12:01:08 +0800 Subject: [PATCH 1/2] authenticator: Add package --- archlinuxcn/authenticator/PKGBUILD | 64 ++++++++++++++++++++++++++++ archlinuxcn/authenticator/lilac.yaml | 16 +++++++ 2 files changed, 80 insertions(+) create mode 100644 archlinuxcn/authenticator/PKGBUILD create mode 100644 archlinuxcn/authenticator/lilac.yaml diff --git a/archlinuxcn/authenticator/PKGBUILD b/archlinuxcn/authenticator/PKGBUILD new file mode 100644 index 000000000000..3ed89f39d80f --- /dev/null +++ b/archlinuxcn/authenticator/PKGBUILD @@ -0,0 +1,64 @@ +# Maintainer: Kiri +# Contributor: Titouan (Stalone) S. +# Contributor: Igor Dyatlov +# Contributor: Mark (yochananmarqos) Wagie + +pkgname=authenticator +_pkgname=Authenticator +pkgver=4.3.1 +pkgrel=1 +pkgdesc="Generate Two-Factor Codes" +arch=('x86_64') +url="https://gitlab.gnome.org/World/Authenticator" +license=('GPL-3.0-or-later') +depends=('glib2' + 'gtk4' + 'libadwaita' + 'zbar' + 'gstreamer' + 'gst-plugins-base-libs' + 'libpipewire' + 'gcc-libs' + 'hicolor-icon-theme' + 'glibc' + 'openssl' + 'sqlite' + 'graphene' + 'pango' + 'gdk-pixbuf2' + 'cairo' + 'dconf') +makedepends=('meson' + 'cargo' + 'clang' + 'llvm') +checkdepends=('appstream-glib' + 'reuse') +source=("${url}/-/archive/${pkgver}/${_pkgname}-${pkgver}.tar.gz") +options=('!lto') +sha512sums=("8eb3f2e5317960dcf63a1af05e0c3e431b148125dc405aa809acd78d72c4265659e8652ef46098708b1838e3146f4a03112d18e699fa2067bacb2beaa32ff0e0") + +prepare() { + cd ${_pkgname}-${pkgver} + export RUSTUP_TOOLCHAIN=stable + cargo fetch --locked --target "$CARCH-unknown-linux-gnu" +} + +build() { + local meson_options=( + --buildtype release + ) + + export RUSTUP_TOOLCHAIN=stable + arch-meson ${_pkgname}-${pkgver} build "${meson_options[@]}" + meson compile -C build +} + +check() { + meson test -C build --print-errorlogs || : +} + +package() { + meson install -C build --destdir "$pkgdir" +} + diff --git a/archlinuxcn/authenticator/lilac.yaml b/archlinuxcn/authenticator/lilac.yaml new file mode 100644 index 000000000000..cb7784b649ec --- /dev/null +++ b/archlinuxcn/authenticator/lilac.yaml @@ -0,0 +1,16 @@ +maintainers: + - github: kiri2002 + +build_prefix: extra-x86_64 + +pre_build_script: | + update_pkgver_and_pkgrel(_G.newver) + +post_build_script: | + git_pkgbuild_commit() + +update_on: + - source: gitlab + gitlab: World/Authenticator + host: gitlab.gnome.org + use_max_tag: true From 4b7852c24efa82eeac5948f29120e378c9a2f4fe Mon Sep 17 00:00:00 2001 From: Kiri <125180256+Kiri2002@users.noreply.github.com> Date: Fri, 29 Mar 2024 14:23:43 +0800 Subject: [PATCH 2/2] authenticator: add email to lilac.yaml --- archlinuxcn/authenticator/lilac.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/archlinuxcn/authenticator/lilac.yaml b/archlinuxcn/authenticator/lilac.yaml index cb7784b649ec..10bf8cedef21 100644 --- a/archlinuxcn/authenticator/lilac.yaml +++ b/archlinuxcn/authenticator/lilac.yaml @@ -1,5 +1,6 @@ maintainers: - github: kiri2002 + email: kiri@vern.cc build_prefix: extra-x86_64