Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: pegasus-frontend-2023w20
@ 2024-04-03  2:19 Newchair2644
  2024-04-03  2:23 ` Newchair2644
  2024-04-03  2:25 ` Newchair2644
  0 siblings, 2 replies; 3+ messages in thread
From: Newchair2644 @ 2024-04-03  2:19 UTC (permalink / raw)
  To: ml

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

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

https://github.com/Newchair2644/void-packages pegasus-frontend
https://github.com/void-linux/void-packages/pull/49689

New package: pegasus-frontend-2023w20
<!-- 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):
  - aarch64-musl
  - x86_64-musl


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

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

From ba56bcfa38d7072a0d42b972ef822067045135af Mon Sep 17 00:00:00 2001
From: Newchair2644 <Numair2644@protonmail.com>
Date: Tue, 19 Mar 2024 13:06:16 -0400
Subject: [PATCH] New package: pegasus-frontend-2023w20

---
 .../pegasus-frontend/patches/qmake_conf.patch | 31 ++++++++++++++++
 srcpkgs/pegasus-frontend/template             | 36 +++++++++++++++++++
 2 files changed, 67 insertions(+)
 create mode 100644 srcpkgs/pegasus-frontend/patches/qmake_conf.patch
 create mode 100644 srcpkgs/pegasus-frontend/template

diff --git a/srcpkgs/pegasus-frontend/patches/qmake_conf.patch b/srcpkgs/pegasus-frontend/patches/qmake_conf.patch
new file mode 100644
index 00000000000000..388327e55678e3
--- /dev/null
+++ b/srcpkgs/pegasus-frontend/patches/qmake_conf.patch
@@ -0,0 +1,31 @@
+--- a/.qmake.conf
++++ b/.qmake.conf
+@@ -1,25 +1,9 @@
+ TOP_SRCDIR=$$PWD
+ TOP_BUILDDIR=$$shadowed($$PWD)
+ 
+-GIT_REVISION = $$system(git \
+-    --git-dir \"$${TOP_SRCDIR}/.git\" \
+-    --work-tree \"$${TOP_SRCDIR}\" \
+-    describe \
+-    --always --dirty)
+-
+-GIT_DATE = $$system(git \
+-    --git-dir \"$${TOP_SRCDIR}/.git\" \
+-    --work-tree \"$${TOP_SRCDIR}\" \
+-    log \
+-    -1 \
+-    --format=%cd \
+-    --date=short)
+-
+-GIT_COMMIT_CNT = $$system(git \
+-    --git-dir \"$${TOP_SRCDIR}/.git\" \
+-    --work-tree \"$${TOP_SRCDIR}\" \
+-    rev-list \
+-    --count HEAD)
++GIT_REVISION = alpha16-51-g6421d7a7
++GIT_DATE = 2023-05-21
++GIT_COMMIT_CNT = 1914
+ 
+ COMMON_DEFINES = \
+     QT_DEPRECATED_WARNINGS \
diff --git a/srcpkgs/pegasus-frontend/template b/srcpkgs/pegasus-frontend/template
new file mode 100644
index 00000000000000..8a70af24bc2289
--- /dev/null
+++ b/srcpkgs/pegasus-frontend/template
@@ -0,0 +1,36 @@
+# Template file for 'pegasus-frontend'
+pkgname=pegasus-frontend
+version=2023w20
+revision=1
+_translations_commit=e1afa445aa55f877f48fba600706c712113e5508
+_theme_commit=d7533c825c769a2240ed1a70cbbb1178793e871b
+_sort_commit=2061f8136ba372fd06c1928a610258b7d88cb144
+build_style=qmake
+configure_args="INSTALL_BINDIR=/usr/bin INSTALL_DOCDIR=/usr/share/doc/pegasus-frontend
+ INSTALL_DESKTOPDIR=/usr/share/applications INSTALL_ICONDIR=/usr/share/icons/hicolor
+ INSTALL_APPSTREAMDIR=/usr/share/metainfo"
+hostmakedepends="qt5-qmake qt5-host-tools"
+makedepends="qt5-declarative-devel qt5-quickcontrols2-devel qt5-multimedia-devel qt5-svg-devel qt5-gamepad-devel SDL2-devel"
+depends="qt5-graphicaleffects"
+short_desc="Cross platform, customizable graphical frontend for launching emulators"
+maintainer="Newchair2644 <Numair2644@protonmail.com>"
+license="GPL-3.0-or-later"
+homepage="https://pegasus-frontend.org/"
+changelog="https://github.com/mmatyas/pegasus-frontend/releases"
+distfiles="https://github.com/mmatyas/pegasus-frontend/archive/refs/tags/weekly_${version}.tar.gz
+ https://github.com/mmatyas/pegasus-frontend-translations/archive/${_translations_commit}.tar.gz
+ https://github.com/mmatyas/pegasus-theme-grid/archive/${_theme_commit}.tar.gz
+ https://github.com/mmatyas/SortFilterProxyModel/archive/${_sort_commit}.tar.gz"
+checksum="ada811633203418cea703e2178b543d51adb7a481f867c3de34ae085b4f4b878
+ e618ec20a4b1a04a6109b1cbc39baa1ac05610dfb57c3a790685d154eca0a930
+ 61bfcafd6d55fdbaa70caa1377ce523b4b4152beb73783858d56c00fd6ced57d
+ 16a6438803014aebcb70342b72ad15eaf39c39db0ed766d397b3acbc0c7f8215"
+skip_extraction="${_translations_commit}.tar.gz
+ ${_theme_commit}.tar.gz
+ ${_sort_commit}.tar.gz"
+
+post_extract() {
+	vsrcextract -C lang "${_translations_commit}.tar.gz"
+	vsrcextract -C src/themes/pegasus-theme-grid "${_theme_commit}.tar.gz"
+	vsrcextract -C thirdparty/SortFilterProxyModel "${_sort_commit}.tar.gz"
+}

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

* Re: New package: pegasus-frontend-2023w20
  2024-04-03  2:19 [PR PATCH] New package: pegasus-frontend-2023w20 Newchair2644
@ 2024-04-03  2:23 ` Newchair2644
  2024-04-03  2:25 ` Newchair2644
  1 sibling, 0 replies; 3+ messages in thread
From: Newchair2644 @ 2024-04-03  2:23 UTC (permalink / raw)
  To: ml

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

New comment by Newchair2644 on void-packages repository

https://github.com/void-linux/void-packages/pull/49689#issuecomment-2033417320

Comment:
The patch is there because the build system sets the version number based on the Git info, so it expects Git history, which is obviously not part of a release tarball. I instead cloned the repository, ran the respective git commands, then hard-coded the strings.

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

* Re: New package: pegasus-frontend-2023w20
  2024-04-03  2:19 [PR PATCH] New package: pegasus-frontend-2023w20 Newchair2644
  2024-04-03  2:23 ` Newchair2644
@ 2024-04-03  2:25 ` Newchair2644
  1 sibling, 0 replies; 3+ messages in thread
From: Newchair2644 @ 2024-04-03  2:25 UTC (permalink / raw)
  To: ml

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

New comment by Newchair2644 on void-packages repository

https://github.com/void-linux/void-packages/pull/49689#issuecomment-2033417320

Comment:
The patch is there because the build system sets the version number based on the Git info, so it expects Git history, which is obviously not part of a release tarball. I instead cloned the repository, checked out the release commit, ran the respective git commands, then hard-coded the strings.

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

end of thread, other threads:[~2024-04-03  2:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-03  2:19 [PR PATCH] New package: pegasus-frontend-2023w20 Newchair2644
2024-04-03  2:23 ` Newchair2644
2024-04-03  2:25 ` Newchair2644

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