From ba56bcfa38d7072a0d42b972ef822067045135af Mon Sep 17 00:00:00 2001 From: Newchair2644 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 " +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" +}