aboutsummaryrefslogtreecommitdiffstats
path: root/testing/keepassxc-proxy-static/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/keepassxc-proxy-static/APKBUILD')
-rw-r--r--testing/keepassxc-proxy-static/APKBUILD60
1 files changed, 0 insertions, 60 deletions
diff --git a/testing/keepassxc-proxy-static/APKBUILD b/testing/keepassxc-proxy-static/APKBUILD
deleted file mode 100644
index 61f9d0f4d78..00000000000
--- a/testing/keepassxc-proxy-static/APKBUILD
+++ /dev/null
@@ -1,60 +0,0 @@
-# Contributor: Jakub Jirutka <jakub@jirutka.cz>
-# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
-#
-# CAUTION: Don't move this to the community repository until #12941 is fixed,
-# so it can be built with cargo+rustc from aports!
-pkgname=keepassxc-proxy-static
-_projname=keepassxc-proxy-rust
-pkgver=0_git20210116
-_gitrev=338735e6f4ab95f4b53734b05fe64c70694ea219
-pkgrel=1
-pkgdesc="A statically linked proxy between Native Messaging browser extension and KeePassXC (for use with Flatpak)"
-url="https://github.com/varjolintu/keepassxc-proxy-rust"
-arch="x86_64" # limited by rustup, fails to build on aarch64
-license="GPL-3.0-or-later"
-makedepends="rustup"
-install="$pkgname.post-install"
-source="https://github.com/varjolintu/keepassxc-proxy-rust/archive/$_gitrev/$_projname-$_gitrev.tar.gz
- keepassxc-proxy-install.in
- "
-builddir="$srcdir/$_projname-$_gitrev"
-options="!check" # no tests provided
-
-export CARGO_HOME="$srcdir/.cargo"
-export RUSTUP_HOME="$srcdir/.rustup"
-
-prepare() {
- default_prepare
-
- sed "s/@@VERSION@@/$pkgver/" "$srcdir"/keepassxc-proxy-install.in \
- > "$srcdir"/keepassxc-proxy-install
-
- # Optimize binary for size.
- cat >> Cargo.toml <<-EOF
-
- [profile.release]
- codegen-units = 1
- lto = true
- opt-level = "z"
- panic = "abort"
- EOF
-
- # TODO: This is a workaround for https://gitlab.alpinelinux.org/alpine/aports/-/issues/12941.
- # Remove it and build with cargo+rustc from aports (using `-C target-feature=+crt-static`)
- # after it's fixed.
- rustup-init --target "$CARCH-unknown-linux-musl" --profile minimal --no-modify-path -y
-}
-
-build() {
- PATH="$CARGO_HOME/bin:$PATH" cargo build --locked --release
-}
-
-package() {
- install -D -m755 target/release/keepassxc-proxy "$pkgdir"/usr/libexec/keepassxc-proxy.static
- install -D -m755 "$srcdir"/keepassxc-proxy-install "$pkgdir"/usr/bin/keepassxc-proxy-install
-}
-
-sha512sums="
-9926503b297a7ee72c80d9bfcc4972f76366d897a5ef24bd4fb2394b2eb60e1db75508168333daef2e65e3fcf3a0c755ec539fc3ff0fc71566b3b12951a91b0c keepassxc-proxy-rust-338735e6f4ab95f4b53734b05fe64c70694ea219.tar.gz
-3d31ed8d2a430f1e61960990128a9b7277106fcf74c16952ccefdeca3a3ba5cb9e6917d08d801bff1d4d354566689bda8f54d10f3711b03063d01374913c0387 keepassxc-proxy-install.in
-"