From 135d95810c1e1b630c68a49313d7fbbac0dedb9b Mon Sep 17 00:00:00 2001 From: villamorrd Date: Tue, 24 Dec 2024 01:54:59 +0800 Subject: [PATCH] add: `umu-launcher-git` --- packagelist | 1 + packages/umu-launcher-git/.SRCINFO | 27 ++++++++++ packages/umu-launcher-git/Makefile.patch | 33 ++++++++++++ .../umu-launcher-git.pacscript | 52 +++++++++++++++++++ srclist | 28 ++++++++++ 5 files changed, 141 insertions(+) create mode 100644 packages/umu-launcher-git/.SRCINFO create mode 100644 packages/umu-launcher-git/Makefile.patch create mode 100644 packages/umu-launcher-git/umu-launcher-git.pacscript diff --git a/packagelist b/packagelist index b5267ce00d..0c498961cd 100644 --- a/packagelist +++ b/packagelist @@ -580,6 +580,7 @@ typora-deb u-boot-mobian-deb ugee-tablet-driver-deb ulauncher-deb +umu-launcher-git ungoogled-chromium-deb unicons-git unicorn-desktop-git diff --git a/packages/umu-launcher-git/.SRCINFO b/packages/umu-launcher-git/.SRCINFO new file mode 100644 index 0000000000..66bf605aff --- /dev/null +++ b/packages/umu-launcher-git/.SRCINFO @@ -0,0 +1,27 @@ +pkgbase = umu-launcher-git + gives = umu-launcher + pkgver = 1.1.4 + pkgdesc = A tool for launching non-steam games with Proton + url = https://github.com/Open-Wine-Components/umu-launcher + arch = all + depends = python3 + depends = python3-xlib>=0.33 + depends = python3-six + depends = python3-filelock + depends = python3-urllib3>=2.0.0 + depends = apparmor-profiles + makedepends = git + makedepends = scdoc + makedepends = python3-pip + makedepends = python3-build + makedepends = python3-hatchling + makedepends = python3-installer + license = GPL-3.0-only + maintainer = villamorrd + repology = project: umu-launcher + source = https://github.com/Open-Wine-Components/umu-launcher.git + source = Makefile.patch + sha256sums = SKIP + sha256sums = 26fde7fb612543ff26ec1937c2e8281bc0234bc6a11f7aea37b94daba967a472 + +pkgname = umu-launcher-git diff --git a/packages/umu-launcher-git/Makefile.patch b/packages/umu-launcher-git/Makefile.patch new file mode 100644 index 0000000000..ef5cc1c5ac --- /dev/null +++ b/packages/umu-launcher-git/Makefile.patch @@ -0,0 +1,33 @@ +diff --git a/Makefile.in b/Makefile.in +index 9324abc..83cf710 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -21,7 +21,7 @@ FLATPAK ?= xfalse + + .PHONY: all + ifeq ($(FLATPAK), xtrue) +-all: umu-dist umu-launcher umu-vendored ++all: umu-dist umu-launcher + endif + + .PHONY: install +@@ -30,8 +30,8 @@ SOURCE_DATE_EPOCH = $(shell LC_ALL=C date --date='@1580601600') + all: zipapp + install: zipapp-install + else +-all: umu-dist umu-docs umu-launcher umu-vendored +-install: umu-install umu-launcher-install umu-vendored-install ++all: umu-dist umu-docs umu-launcher ++install: umu-install umu-launcher-install + endif + + +@@ -121,7 +121,7 @@ clean: + @rm -rf -v ./$(RELEASEDIR) $(RELEASEDIR).tar.gz + + +-RELEASEDIR := $(PROJECT)-$(shell git describe --abbrev=0) ++RELEASEDIR := $(PROJECT)-$(shell git describe --abbrev=0 --always) + $(RELEASEDIR): + mkdir -p $(@) + diff --git a/packages/umu-launcher-git/umu-launcher-git.pacscript b/packages/umu-launcher-git/umu-launcher-git.pacscript new file mode 100644 index 0000000000..f53d0a5663 --- /dev/null +++ b/packages/umu-launcher-git/umu-launcher-git.pacscript @@ -0,0 +1,52 @@ +pkgname="umu-launcher-git" +repology=("project: umu-launcher") +arch=('all') +pkgver="1.1.4" +url='https://github.com/Open-Wine-Components/umu-launcher' +source=( + "https://github.com/Open-Wine-Components/umu-launcher.git" + "Makefile.patch" +) +sha256sums=( + 'SKIP' + "26fde7fb612543ff26ec1937c2e8281bc0234bc6a11f7aea37b94daba967a472" +) +depends=( + "python3" + "python3-xlib>=0.33" + "python3-six" + "python3-filelock" + "python3-urllib3>=2.0.0" + "apparmor-profiles" +) +makedepends=( + "git" + "scdoc" + "python3-pip" + "python3-build" + "python3-hatchling" + "python3-installer" +) +gives="umu-launcher" +pkgdesc="A tool for launching non-steam games with Proton" +maintainer=("villamorrd ") +license=('GPL-3.0-only') + +prepare() { + cd "${gives}" + ./configure.sh --prefix=/usr + + # Apply Makefile patch to remove vendored dependency installation. + # See: https://github.com/Open-Wine-Components/umu-launcher/issues/296 + patch Makefile.in "${srcdir}"/Makefile.patch +} + +build() { + cd "${gives}" + make -j"${NCPU}" +} + +package() { + cd "${gives}" + make DESTDIR="${pkgdir}" install +} diff --git a/srclist b/srclist index 83bb740879..91c7891b0a 100644 --- a/srclist +++ b/srclist @@ -11629,6 +11629,34 @@ pkgbase = ulauncher-deb pkgname = ulauncher-deb --- +pkgbase = umu-launcher-git + gives = umu-launcher + pkgver = 1.1.4 + pkgdesc = A tool for launching non-steam games with Proton + url = https://github.com/Open-Wine-Components/umu-launcher + arch = all + depends = python3 + depends = python3-xlib>=0.33 + depends = python3-six + depends = python3-filelock + depends = python3-urllib3>=2.0.0 + depends = apparmor-profiles + makedepends = git + makedepends = scdoc + makedepends = python3-pip + makedepends = python3-build + makedepends = python3-hatchling + makedepends = python3-installer + license = GPL-3.0-only + maintainer = villamorrd + repology = project: umu-launcher + source = https://github.com/Open-Wine-Components/umu-launcher.git + source = Makefile.patch + sha256sums = SKIP + sha256sums = 26fde7fb612543ff26ec1937c2e8281bc0234bc6a11f7aea37b94daba967a472 + +pkgname = umu-launcher-git +--- pkgbase = ungoogled-chromium-deb gives = ungoogled-chromium pkgver = 130.0.6723.91-stable1