From: inalone <inalone@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] New package: feishin-0.3.0
Date: Tue, 22 Aug 2023 19:23:39 +0200 [thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-45714@inbox.vuxu.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 1190 bytes --]
There is a new pull request by inalone against master on the void-packages repository
https://github.com/inalone/void-packages feishin
https://github.com/void-linux/void-packages/pull/45714
New package: feishin-0.3.0
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### 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**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, x86_64 glibc
- I built this PR locally for these architectures (if supported. mark crossbuilds): None
-->
A patch file from https://github.com/void-linux/void-packages/pull/45714.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-feishin-45714.patch --]
[-- Type: text/x-diff, Size: 2354 bytes --]
From f24a5e1b2aa80ef6d92d1eb39b550b959fd5e69d Mon Sep 17 00:00:00 2001
From: inalone <me@inal.one>
Date: Tue, 22 Aug 2023 17:07:14 +0100
Subject: [PATCH] New package: feishin-0.3.0
---
srcpkgs/feishin/files/feishin.desktop | 10 +++++++
srcpkgs/feishin/template | 43 +++++++++++++++++++++++++++
2 files changed, 53 insertions(+)
create mode 100644 srcpkgs/feishin/files/feishin.desktop
create mode 100644 srcpkgs/feishin/template
diff --git a/srcpkgs/feishin/files/feishin.desktop b/srcpkgs/feishin/files/feishin.desktop
new file mode 100644
index 0000000000000..d97cb917d1242
--- /dev/null
+++ b/srcpkgs/feishin/files/feishin.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=Feishin
+Comment=A modern self-hosted music player
+Exec=feishin
+Icon=feishin
+Terminal=false
+StartupNotify=false
+Categories=AudioVideo;Audio;
diff --git a/srcpkgs/feishin/template b/srcpkgs/feishin/template
new file mode 100644
index 0000000000000..19ef8cee0831b
--- /dev/null
+++ b/srcpkgs/feishin/template
@@ -0,0 +1,43 @@
+# Template file for 'feishin'
+pkgname=feishin
+version=0.3.0
+revision=1
+archs="x86_64*"
+nopie=yes
+_electron_version=24
+hostmakedepends="electron${_electron_version} nodejs app-builder"
+depends="mpv"
+short_desc="A modern self-hosted music player"
+maintainer="inalone <me@inal.one>"
+license="GPL-3.0-only"
+homepage="https://github.com/jeffvli/feishin"
+distfiles="https://github.com/jeffvli/feishin/archive/v${version}.tar.gz"
+checksum=626431ee66d5d9d15fad1ec8247a57d5b94047ee014d2da9d5282866391f9124
+
+do_build() {
+ export USE_SYSTEM_APP_BUILDER=true
+ export ELECTRON_SKIP_BINARY_DOWNLOAD=1
+
+ electronDist="/usr/lib/electron${_electron_version}"
+ electronVersion="$(sed s/^v// $electronDist/version)"
+
+ npm install
+ npm run package -- --linux --x64 --dir \
+ -c.electronDist="$electronDist" \
+ -c.electronVersion="$electronVersion"
+}
+
+do_install() {
+ vmkdir opt/${pkgname}
+ vmkdir usr/bin
+
+ vcopy release/build/linux-unpacked/* opt/${pkgname}
+ ln -sf /opt/${pkgname}/${pkgname} ${DESTDIR}/usr/bin/${pkgname}
+
+ vinstall "${FILESDIR}/feishin.desktop" 644 usr/share/applications
+
+ for size in 32x32 64x64 128x128 256x256 512x512 1024x1024; do
+ vinstall "assets/icons/${size}.png" 644 "usr/share/icons/hicolor/${size}/apps" feishin.png
+ done
+ vlicense LICENSE
+}
next reply other threads:[~2023-08-22 17:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-22 17:23 inalone [this message]
2023-08-22 17:28 ` [PR PATCH] [Updated] " inalone
2023-08-23 9:02 ` inalone
2023-08-27 10:16 ` [PR PATCH] [Updated] " inalone
2023-08-27 10:20 ` inalone
2023-09-11 8:56 ` inalone
2023-09-11 9:02 ` inalone
2023-09-11 9:02 ` [PR PATCH] [Closed]: " inalone
2023-09-11 9:09 ` inalone
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-45714@inbox.vuxu.org \
--to=inalone@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).