Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New Package: ncspot-0.11.2
@ 2022-12-28  5:20 d33vliter
  2022-12-28  5:28 ` [PR REVIEW] " classabbyamp
                   ` (11 more replies)
  0 siblings, 12 replies; 16+ messages in thread
From: d33vliter @ 2022-12-28  5:20 UTC (permalink / raw)
  To: ml

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

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

https://github.com/d33vliter/void-packages patch-2
https://github.com/void-linux/void-packages/pull/41327

New Package: ncspot-0.11.2
<!-- 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, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


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

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

From b65589eb451dcf5fa5438d41d4ba938e0a14d16f Mon Sep 17 00:00:00 2001
From: d33vliter <iandupuy1998@gmail.com>
Date: Wed, 28 Dec 2022 00:18:20 -0500
Subject: [PATCH] New Package: ncspot0.11.2

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

diff --git a/srcpkgs/ncspot/template b/srcpkgs/ncspot/template
new file mode 100644
index 000000000000..b90f65e6d598
--- /dev/null
+++ b/srcpkgs/ncspot/template
@@ -0,0 +1,22 @@
+# Template file for 'ncspot'
+pkgname=ncspot
+version=0.11.2
+revision=1
+archs="x86_64"
+wrksrc=${pkgname}-${version}
+create_wrksrc=yes
+#hostmakedepends=""
+#makedepends=""
+depends="libpulseaudio openssl libxcb dbus"
+short_desc="Is a ncurses Spotify client written in Rust using librespot"
+maintainer="d33vliter <d33vliter@protonmail.com>"
+license="GPL-3.0-or-later"
+homepage="https://github.com/hrkfdn/ncspot"
+distfiles="https://github.com/hrkfdn/ncspot/releases/download/v${version}/ncspot-v${version}-linux-x86_64.tar.gz"
+checksum=a97b62a0bb19383b34fe2a0c7128bb8940e1e78dd1fa3be98cdb53b008ed6050
+
+
+ do_install(){
+	vbin ncspot
+
+ }

^ permalink raw reply	[flat|nested] 16+ messages in thread
* [PR PATCH] New package: ncspot-0.9.0
@ 2021-10-17  9:42 ram02z
  2023-01-16 16:43 ` [PR PATCH] [Updated] New package: ncspot-0.11.2 ram02z
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: ram02z @ 2021-10-17  9:42 UTC (permalink / raw)
  To: ml

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

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

https://github.com/ram02z/void-packages ncspot
https://github.com/void-linux/void-packages/pull/33600

New package: ncspot-0.9.0
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

Using the termion as the backend instead of ncurses which doesn't crosscompile. See https://github.com/void-linux/void-packages/pull/23415

Opted to optimize the binary size (taken from alpine's APKBUILD).

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


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

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

From bef75c45f85789e034d1f0167b8c43c71f00de9a Mon Sep 17 00:00:00 2001
From: Omar Zeghouani <omarzeghouanii@gmail.com>
Date: Sun, 17 Oct 2021 10:38:19 +0100
Subject: [PATCH] New package: ncspot-0.9.0

---
 .../patches/0001-remove-pancurses.patch       | 14 ++++++
 srcpkgs/ncspot/template                       | 45 +++++++++++++++++++
 2 files changed, 59 insertions(+)
 create mode 100644 srcpkgs/ncspot/patches/0001-remove-pancurses.patch
 create mode 100644 srcpkgs/ncspot/template

diff --git a/srcpkgs/ncspot/patches/0001-remove-pancurses.patch b/srcpkgs/ncspot/patches/0001-remove-pancurses.patch
new file mode 100644
index 000000000000..b86abab05490
--- /dev/null
+++ b/srcpkgs/ncspot/patches/0001-remove-pancurses.patch
@@ -0,0 +1,14 @@
+pancurses pulls ncurses-rs which breaks cross (termion used instead)
+
+diff --git a/Cargo.toml b/Cargo.toml
+index 576332a..8023123 100644
+--- a/Cargo.toml
++++ b/Cargo.toml
+@@ -47,7 +47,6 @@ strum_macros = "0.22.0"
+ regex = "1"
+ ioctl-rs = { version = "0.2", optional = true }
+ serde_cbor = "0.11.2"
+-pancurses = { version = "0.17.0", features = ["win32"] }
+
+ [dependencies.cursive]
+ version = "0.16.3"
diff --git a/srcpkgs/ncspot/template b/srcpkgs/ncspot/template
new file mode 100644
index 000000000000..2b9a952d5064
--- /dev/null
+++ b/srcpkgs/ncspot/template
@@ -0,0 +1,45 @@
+# Template file for 'ncspot'
+pkgname=ncspot
+version=0.9.0
+revision=1
+build_style=cargo
+configure_args="--no-default-features"
+hostmakedepends="pkg-config python3"
+makedepends="openssl-devel $(vopt_if libxcb libxcb-devel)
+$(vopt_if dbus dbus-devel) $(vopt_if alsa alsa-lib-devel)
+$(vopt_if pulseaudio pulseaudio-devel)"
+short_desc="Cross-platform ncurses Spotify client"
+maintainer="Omar Zeghouani <omarzeghouanii@gmail.com>"
+license="BSD-2-Clause"
+homepage="https://github.com/hrkfdn/ncspot"
+distfiles="https://github.com/hrkfdn/ncspot/archive/v${version}.tar.gz"
+checksum=81655d9fab4903c6ac22321f1a6801aaedfbd88d4f5f768ae8303104fa904a53
+
+build_options="libxcb dbus alsa pulseaudio notify cover"
+build_options_default="libxcb dbus alsa pulseaudio notify"
+desc_option_libxcb="Enable support for X clipboard access"
+desc_option_cover="Enable support for cover art"
+
+_features="cursive/termion-backend"
+_features+="$(vopt_if libxcb ',share_clipboard,share_selection')"
+_features+="$(vopt_if dbus ',mpris')"
+_features+="$(vopt_if alsa ',alsa_backend')"
+_features+="$(vopt_if pulseaudio ',pulseaudio_backend')"
+_features+="$(vopt_if notify ',notify')"
+_features+="$(vopt_if cover ',cover')"
+
+do_configure() {
+	configure_args+=" --features $_features"
+	# Reduces binary size (17 MiB -> 8.6 MiB)
+	cat >> Cargo.toml <<-EOF
+		[profile.release]
+		codegen-units = 1
+		lto = true
+		opt-level = "z"
+		panic = "abort"
+	EOF
+}
+
+post_install() {
+	vlicense LICENSE
+}

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

end of thread, other threads:[~2023-01-17 17:10 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-28  5:20 [PR PATCH] New Package: ncspot-0.11.2 d33vliter
2022-12-28  5:28 ` [PR REVIEW] " classabbyamp
2022-12-28  5:28 ` classabbyamp
2022-12-28  5:28 ` classabbyamp
2022-12-28  5:28 ` classabbyamp
2022-12-28  5:41 ` [PR PATCH] [Updated] " d33vliter
2022-12-28  5:41 ` d33vliter
2022-12-28  6:35 ` d33vliter
2022-12-28  7:10 ` [PR REVIEW] " classabbyamp
2022-12-28  7:36 ` classabbyamp
2022-12-28  7:38 ` classabbyamp
2022-12-28  9:23 ` icp1994
2022-12-28  9:53 ` [PR PATCH] [Closed]: " paper42
  -- strict thread matches above, loose matches on Subject: below --
2021-10-17  9:42 [PR PATCH] New package: ncspot-0.9.0 ram02z
2023-01-16 16:43 ` [PR PATCH] [Updated] New package: ncspot-0.11.2 ram02z
2023-01-17 17:05 ` ram02z
2023-01-17 17:10 ` ram02z

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).