Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: PWAsForFirefox-2.7.3
@ 2023-09-28 20:52 Feleuxens
  2023-09-28 22:02 ` [PR REVIEW] " Bnyro
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: Feleuxens @ 2023-09-28 20:52 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 679 bytes --]

There is a new pull request by Feleuxens against master on the void-packages repository

https://github.com/Feleuxens/void-packages PWAsForFirefox
https://github.com/void-linux/void-packages/pull/46316

New package: PWAsForFirefox-2.7.3
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)


A patch file from https://github.com/void-linux/void-packages/pull/46316.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-PWAsForFirefox-46316.patch --]
[-- Type: text/x-diff, Size: 2136 bytes --]

From cbb1366dce23592a2db75d40cc9aa316bcd88027 Mon Sep 17 00:00:00 2001
From: Feleuxens <felixgrueb@icloud.com>
Date: Thu, 28 Sep 2023 22:42:49 +0200
Subject: [PATCH] New package: PWAsForFirefox-2.7.3

---
 srcpkgs/PWAsForFirefox/template | 36 +++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
 create mode 100644 srcpkgs/PWAsForFirefox/template

diff --git a/srcpkgs/PWAsForFirefox/template b/srcpkgs/PWAsForFirefox/template
new file mode 100644
index 0000000000000..026f4e78ba214
--- /dev/null
+++ b/srcpkgs/PWAsForFirefox/template
@@ -0,0 +1,36 @@
+# Template file for 'PWAsForFirefox'
+pkgname=PWAsForFirefox
+version=2.7.3
+revision=1
+archs="~*-musl"
+build_style=cargo
+hostmakedepends="pkg-config"
+makedepends="openssl-devel"
+depends="firefox"
+short_desc="Native part of the firefox extension PWAsForFirefox"
+maintainer="Feleuxens <me@feleuxens.de>"
+license="MPL-2.0"
+homepage="https://github.com/filips123/PWAsForFirefox"
+distfiles="https://github.com/filips123/PWAsForFirefox/archive/refs/tags/v${version}.tar.gz"
+checksum=b520cf5caeeca1d23043a032137f7eead7eb88270e5376c5d08b1234bb90376f
+
+post_extract() {
+	# rm everything except native/
+	find . -mindepth 1 -maxdepth 1 -not -name native -exec rm -r '{}' \;
+	# move everything inside native to root
+	mv native/* .
+	# set version because it is set to 0.0.0
+	sed -i "s/0.0.0/${version}/" Cargo.toml
+	sed -i "/firefoxpwa/,/0.0.0/ s/0.0.0/${version}/" Cargo.lock
+	sed -i "s/DISTRIBUTION_VERSION = \"0.0.0\"/DISTRIBUTION_VERSION = \"${version}\"/g" userchrome/profile/chrome/pwa/chrome.jsm
+}
+
+do_install() {
+	install -D "target/${RUST_TARGET}/release/firefoxpwa" "${DESTDIR}/usr/bin/firefoxpwa"
+	install -D "target/${RUST_TARGET}/release/firefoxpwa-connector" "${DESTDIR}/usr/libexec/firefoxpwa-connector"
+	install -D manifests/linux.json "${DESTDIR}/usr/lib/mozilla/native-messaging-hosts/firefoxpwa.json"
+	install -D manifests/linux.json "${DESTDIR}/usr/lib64/mozilla/native-messaging-hosts/firefoxpwa.json"
+
+	mkdir -p "${DESTDIR}/usr/share/firefoxpwa/userchrome/"
+	cp -R userchrome/* "${DESTDIR}/usr/share/firefoxpwa/userchrome/"
+}

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2024-01-17  1:47 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-28 20:52 [PR PATCH] New package: PWAsForFirefox-2.7.3 Feleuxens
2023-09-28 22:02 ` [PR REVIEW] " Bnyro
2023-09-28 22:04 ` Bnyro
2023-09-28 22:04 ` Bnyro
2023-09-28 22:04 ` Bnyro
2023-09-28 22:06 ` Bnyro
2023-09-28 22:13 ` Bnyro
2023-09-29 13:49 ` [PR PATCH] [Updated] " Feleuxens
2023-09-29 13:53 ` [PR REVIEW] " Feleuxens
2023-10-03 20:55 ` [PR PATCH] [Updated] " Feleuxens
2024-01-02  1:47 ` New package: PWAsForFirefox-2.8.0 github-actions
2024-01-17  1:47 ` [PR PATCH] [Closed]: " github-actions

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).