aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
Diffstat (limited to 'testing')
-rw-r--r--testing/browserpass/APKBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/testing/browserpass/APKBUILD b/testing/browserpass/APKBUILD
new file mode 100644
index 0000000000..39b524086c
--- /dev/null
+++ b/testing/browserpass/APKBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
+pkgname=browserpass
+pkgver=3.0.6
+pkgrel=0
+pkgdesc="Browser extension for pass"
+url="https://github.com/browserpass/browserpass-native"
+arch="all"
+license="MIT"
+depends="pass"
+makedepends="go git"
+source="${pkgname}-${pkgver}.tar.gz::https://github.com/browserpass/browserpass-native/archive/$pkgver.tar.gz"
+builddir="$srcdir/github.com/browserpass/browserpass-native"
+
+prepare() {
+ mkdir -p "${builddir%/*}"
+ mv "$srcdir/browserpass-native-$pkgver" "$builddir"
+ default_prepare
+}
+
+build() {
+ make browserpass configure
+}
+
+check() {
+ make test
+}
+
+package() {
+ install -dm0755 "$pkgdir"/usr/bin \
+ "$pkgdir"/usr/lib/mozilla/native-messaging-hosts \
+ "$pkgdir"/etc/chromium/native-messaging-hosts \
+ "$pkgdir"/etc/chromium/policies/managed
+
+ install -m0755 browserpass "$pkgdir"/usr/bin/browserpass
+
+ local targetname=com.github.browserpass.native.json
+
+ install -m644 browser-files/firefox-host.json "$pkgdir"/usr/lib/mozilla/native-messaging-hosts/$targetname
+
+ install -m644 browser-files/chromium-host.json "$pkgdir"/etc/chromium/native-messaging-hosts/$targetname
+ install -m644 browser-files/chromium-policy.json "$pkgdir"/etc/chromium/policies/managed/$targetname
+}
+
+sha512sums="48cc93843afed5dc0df4f72956df44b325d6c772ad232d8faa2315c4d8b716eda9b030601e011b280445e0b01528f413e5b19818ad89cd7bcb06f4a1f4f9d3f4 browserpass-3.0.6.tar.gz"