Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: wraith-master-1.2.1
@ 2023-04-07 10:29 adigitoleo
  2023-04-07 11:29 ` [PR PATCH] [Updated] " adigitoleo
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: adigitoleo @ 2023-04-07 10:29 UTC (permalink / raw)
  To: ml

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

There is a new 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: 3258 bytes --]

From 60335babc72729dee11d67e6d232275627acfea0 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 | 60 ++++++++++++++++++++++++++++++++++
 3 files changed, 62 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..f3e419c00811
--- /dev/null
+++ b/srcpkgs/wraith-master/template
@@ -0,0 +1,60 @@
+# 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 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
+}
+
+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/
+	}
+}

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

end of thread, other threads:[~2023-07-26  1:56 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-07 10:29 [PR PATCH] New package: wraith-master-1.2.1 adigitoleo
2023-04-07 11:29 ` [PR PATCH] [Updated] " adigitoleo
2023-04-07 11:40 ` adigitoleo
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

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