From: adigitoleo <adigitoleo@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: wraith-master-1.2.1
Date: Fri, 07 Apr 2023 13:40:47 +0200 [thread overview]
Message-ID: <20230407114047.U9m8UY88SxxwXBeAWl82HvP1I3MhKD92bg6ILu--Qso@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-43317@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 1005 bytes --]
There is an updated pull request by adigitoleo against master on the void-packages repository
https://github.com/adigitoleo/void-packages wraith-master
https://github.com/void-linux/void-packages/pull/43317
New package: wraith-master-1.2.1
Package for RGB control of AMD Wraith Master cooling fans. As far as I am aware, the gradle build system is not capable of producing PIE executables, hence the use of `nopie_files`. The GTK3 and cli frontends can be built separately, as per upstream build options (and the AUR PKGBUILD).
#### 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** (system-wide install, compiled)
#### Local build testing
- I built this PR locally for my native architecture, (glibc x86_64)
A patch file from https://github.com/void-linux/void-packages/pull/43317.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-wraith-master-43317.patch --]
[-- Type: text/x-diff, Size: 3316 bytes --]
From db87322530bd02b296ac0e3f7e2e4863db0125ab Mon Sep 17 00:00:00 2001
From: adigitoleo <adigitoleo@dissimulo.com>
Date: Fri, 7 Apr 2023 17:35:06 +1000
Subject: [PATCH] New package: wraith-master-1.2.1
Package for RGB control of AMD Wraith Master cooling fans.
As far as I am aware, the gradle build system is not capable of
producing PIE executables, hence the use of `nopie_files`.
The GTK3 and cli frontends can be built separately, as per upstream
build options (and the AUR PKGBUILD).
---
srcpkgs/wraith-master-cli | 1 +
srcpkgs/wraith-master-gtk | 1 +
srcpkgs/wraith-master/template | 61 ++++++++++++++++++++++++++++++++++
3 files changed, 63 insertions(+)
create mode 120000 srcpkgs/wraith-master-cli
create mode 120000 srcpkgs/wraith-master-gtk
create mode 100644 srcpkgs/wraith-master/template
diff --git a/srcpkgs/wraith-master-cli b/srcpkgs/wraith-master-cli
new file mode 120000
index 000000000000..dbdab2cf8071
--- /dev/null
+++ b/srcpkgs/wraith-master-cli
@@ -0,0 +1 @@
+wraith-master
\ No newline at end of file
diff --git a/srcpkgs/wraith-master-gtk b/srcpkgs/wraith-master-gtk
new file mode 120000
index 000000000000..dbdab2cf8071
--- /dev/null
+++ b/srcpkgs/wraith-master-gtk
@@ -0,0 +1 @@
+wraith-master
\ No newline at end of file
diff --git a/srcpkgs/wraith-master/template b/srcpkgs/wraith-master/template
new file mode 100644
index 000000000000..ee2710b2469c
--- /dev/null
+++ b/srcpkgs/wraith-master/template
@@ -0,0 +1,61 @@
+# Template file for 'wraith-master'
+
+pkgname=wraith-master
+version=1.2.1
+revision=1
+
+build_style=gnu-makefile
+# Don't build experimental ELF frontend yet, https://gitlab.com/serebit/wraith-master/-/issues/26.
+make_build_target="common cli gtk"
+# Don't download gradle.
+make_build_args="GRADLE=gradle"
+# Gradle can't build PIE executables?
+nopie_files="/usr/bin/wraith-master /usr/bin/wraith-master-gtk"
+
+hostmakedepends="scdoc openjdk8 gradle tar"
+makedepends="libusb-devel gtk+3-devel"
+short_desc="Wraith Prism RGB control application built with GTK+ and Kotlin/Native"
+maintainer="adigitoleo <adigitoleo@dissimulo.com>"
+license="Apache-2.0"
+homepage="https://gitlab.com/serebit/wraith-master"
+changelog="https://gitlab.com/serebit/wraith-master/-/raw/master/CHANGELOG.md"
+distfiles="https://gitlab.com/serebit/wraith-master/-/archive/v$version/$pkgname-v$version.tar.gz"
+checksum=fcf150b5f45e9b9ffad60e1a72f7251d4488fba28d5b325688c931f5098e21ca
+
+pre_build() {
+ export GRADLE_USER_HOME=$PWD/.gradle
+ export KONAN_DATA_DIR=$PWD/.konan
+ export JAVA_HOME=/usr/lib/jvm/java-1.8-openjdk
+}
+
+pkg_install() {
+ cd build/PACKAGE
+ vmkdir /etc/udev/rules.d/
+ vcopy udev/* /etc/udev/rules.d/
+}
+
+wraith-master-cli_package() {
+ short_desc+=" - CLI frontend"
+ depends="$sourcepkg>=$version_$revision"
+ pkg_install() {
+ cd build/PACKAGE
+ vbin wraith-master
+ vman man/wraith-master.1
+ }
+}
+
+wraith-master-gtk_package() {
+ short_desc+=" - GTK frontend"
+ depends="$sourcepkg>=$version_$revision"
+ pkg_install() {
+ cd build/PACKAGE
+ vbin wraith-master-gtk
+ vman man/wraith-master-gtk.1
+ vmkdir /usr/share/icons/
+ vcopy icons/* /usr/share/icons/
+ vmkdir /usr/share/metainfo/
+ vcopy metainfo/* /usr/share/metainfo/
+ vmkdir /usr/share/applications/
+ vcopy desktop/* /usr/share/applications/
+ }
+}
next prev parent reply other threads:[~2023-04-07 11:40 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-07 10:29 [PR PATCH] " adigitoleo
2023-04-07 11:29 ` [PR PATCH] [Updated] " adigitoleo
2023-04-07 11:40 ` adigitoleo [this message]
2023-04-07 11:53 ` adigitoleo
2023-04-07 11:56 ` asiekierka
2023-04-07 12:10 ` adigitoleo
2023-04-07 13:02 ` [PR REVIEW] " paper42
2023-04-07 13:02 ` paper42
2023-04-07 13:02 ` paper42
2023-04-07 13:02 ` paper42
2023-04-07 13:02 ` paper42
2023-04-11 9:15 ` [PR PATCH] [Updated] " adigitoleo
2023-04-11 9:17 ` adigitoleo
2023-04-11 11:40 ` [PR PATCH] [Updated] " adigitoleo
2023-04-11 11:51 ` adigitoleo
2023-07-11 2:02 ` github-actions
2023-07-26 1:56 ` [PR PATCH] [Closed]: " github-actions
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=20230407114047.U9m8UY88SxxwXBeAWl82HvP1I3MhKD92bg6ILu--Qso@z \
--to=adigitoleo@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).