Subject: [PATCH v2] testing/himitsu-firefox: new aport

From: Drew DeVault <[email-masked]>
Date: Fri, 17 Jun 2022 14:23:23 +0200

---
Correcting the commit message

 testing/himitsu-firefox/APKBUILD              | 27 +++++++++++++++++++
 .../himitsu-firefox.post-install              | 10 +++++++
 2 files changed, 37 insertions(+)
 create mode 100644 testing/himitsu-firefox/APKBUILD
 create mode 100755 testing/himitsu-firefox/himitsu-firefox.post-install

diff --git a/testing/himitsu-firefox/APKBUILD b/testing/himitsu-firefox/APKBUILD
new file mode 100644
index 0000000000..a2841bf169
--- /dev/null
+++ b/testing/himitsu-firefox/APKBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Drew DeVault <[email-masked]>
+pkgname=himitsu-firefox
+pkgver="0.3"
+pkgrel=0
+pkgdesc="Firefox integration for Himitsu"
+url="https://himitsustore.org"
+arch="x86_64 aarch64" # Hare
+license="GPL-3.0-only"
+makedepends="hare himitsu-dev"
+source="
+	$pkgname-$pkgver.tar.gz::https://git.sr.ht/~sircmpwn/himitsu-firefox/archive/$pkgver.tar.gz
+"
+install="$pkgname.post-install"
+builddir="$srcdir/$pkgname-$pkgver"
+options="!check"
+
+build() {
+	make -j1 PREFIX=/usr
+}
+
+package() {
+	make DESTDIR="$pkgdir" PREFIX=/usr install-native
+}
+
+sha512sums="
+35c9a53da2b91b2539c52c0f4cce2b13800f7e55ea762041ddb1118c5db299196dbebff6579613f83e28cabaf6f398fca5af0bc32a325e40b7f0d1a6bb88213d  himitsu-firefox-0.3.tar.gz
+"
diff --git a/testing/himitsu-firefox/himitsu-firefox.post-install b/testing/himitsu-firefox/himitsu-firefox.post-install
new file mode 100755
index 0000000000..4551492454
--- /dev/null
+++ b/testing/himitsu-firefox/himitsu-firefox.post-install
@@ -0,0 +1,10 @@
+#!/bin/sh
+cat >&2 <<EOF
+*
+* The himitsu-firefox package only includes the native messaging support for
+* the corresponding Firefox add-on. You must install the Firefox add-on
+* manually to actually use it:
+* 
+* https://addons.mozilla.org/en-US/firefox/addon/himitsu-integration/
+*
+EOF
-- 
2.36.1