From c345dbbbab762375ecfbb3f6e414eac9cff55463 Mon Sep 17 00:00:00 2001 From: ferreo Date: Thu, 7 Nov 2024 16:11:21 +0000 Subject: [PATCH] package protontricks --- .github/release-nest-v3 | 2 +- debian/changelog | 119 ++++++++++++++++++++++++++++++++++++++- debian/clean | 2 + debian/control | 50 ++++++++++------ debian/copyright | 27 +++++++++ debian/gbp.conf | 5 ++ debian/install | 1 + debian/rules | 67 +--------------------- debian/salsa-ci.yml | 8 +++ debian/tests/control | 3 + debian/tests/pytest | 7 +++ debian/upstream/metadata | 4 ++ debian/watch | 2 + 13 files changed, 212 insertions(+), 85 deletions(-) create mode 100644 debian/clean create mode 100644 debian/gbp.conf create mode 100644 debian/install create mode 100644 debian/salsa-ci.yml create mode 100644 debian/tests/control create mode 100755 debian/tests/pytest create mode 100644 debian/upstream/metadata create mode 100644 debian/watch diff --git a/.github/release-nest-v3 b/.github/release-nest-v3 index 56a6051..d8263ee 100644 --- a/.github/release-nest-v3 +++ b/.github/release-nest-v3 @@ -1 +1 @@ -1 \ No newline at end of file +2 \ No newline at end of file diff --git a/debian/changelog b/debian/changelog index 6d8d068..63d56f0 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,5 +1,118 @@ -upstream-name (1.0-101pika1) pika; urgency=medium +protontricks (1.12.0-101pika1) unstable; urgency=medium - * Initial release. (Closes: #nnnn) + * New upstream version 1.12.0 - -- ferreo Wed, 18 Jan 2023 21:48:14 +0000 + -- Stephan Lachnit Thu, 08 Aug 2024 10:24:10 +0200 + + +protontricks (1.11.1-1) unstable; urgency=medium + + * New upstream version 1.11.1 (Closes: #1071809 #1063967 #1064509) + * Update standards version to 4.7.0, no changes needed + + -- Stephan Lachnit Thu, 08 Aug 2024 10:24:10 +0200 + +protontricks (1.10.5-1) unstable; urgency=medium + + * New upstream version 1.10.5 + + -- Stephan Lachnit Sat, 25 Nov 2023 16:43:46 +0100 + +protontricks (1.10.3-1) unstable; urgency=medium + + * New upstream version 1.10.3 + + -- Stephan Lachnit Thu, 20 Jul 2023 23:27:16 +0200 + +protontricks (1.10.2-1) unstable; urgency=medium + + * New upstream version 1.10.2 + + -- Stephan Lachnit Sat, 18 Feb 2023 20:19:34 +0100 + +protontricks (1.10.1-1) unstable; urgency=medium + + * New upstream version 1.10.1 + + -- Stephan Lachnit Sun, 08 Jan 2023 14:45:53 +0100 + +protontricks (1.9.2-1) unstable; urgency=medium + + * New upstream version 1.9.2 + + -- Stephan Lachnit Sun, 23 Oct 2022 17:11:50 +0200 + +protontricks (1.9.1-1) unstable; urgency=medium + + * New upstream version 1.9.1 + + -- Stephan Lachnit Wed, 31 Aug 2022 11:17:01 +0200 + +protontricks (1.9.0-1) unstable; urgency=medium + + * New upstream version 1.9.0 + * Update standards version to 4.6.0.1, no changes needed + + -- Stephan Lachnit Tue, 05 Jul 2022 10:53:28 +0200 + +protontricks (1.8.2-1) unstable; urgency=medium + + * New upstream version 1.8.2 + + -- Stephan Lachnit Fri, 27 May 2022 10:19:23 +0200 + +protontricks (1.8.1-1) unstable; urgency=medium + + * New upstream version 1.8.1 + + -- Stephan Lachnit Tue, 29 Mar 2022 18:25:42 +0200 + +protontricks (1.8.0-1) unstable; urgency=medium + + * New upstream version 1.8.0 + + -- Stephan Lachnit Thu, 03 Mar 2022 23:43:13 +0100 + +protontricks (1.7.0-1) unstable; urgency=medium + + * New upstream version 1.7.0 + + -- Stephan Lachnit Sat, 08 Jan 2022 18:16:44 +0100 + +protontricks (1.6.2-1) unstable; urgency=medium + + * New upstream version 1.6.2 + + -- Stephan Lachnit Sun, 28 Nov 2021 21:50:21 +0100 + +protontricks (1.6.1-3) unstable; urgency=medium + + * add autopkgtest running pytest + + -- Stephan Lachnit Wed, 24 Nov 2021 15:23:15 +0100 + +protontricks (1.6.1-2) unstable; urgency=medium + + * Move steam from Depends to Recommends to allow transition + * Add patch to fix building with Python 3.10 + + -- Stephan Lachnit Tue, 23 Nov 2021 21:56:58 +0100 + +protontricks (1.6.1-1) unstable; urgency=medium + + * New upstream version 1.6.1 + + -- Stephan Lachnit Thu, 21 Oct 2021 18:00:11 +0200 + +protontricks (1.6.0-1) unstable; urgency=medium + + * New upstream version 1.6.0 (Closes: #992277) + * Upload to unstable + + -- Stephan Lachnit Mon, 11 Oct 2021 16:31:48 +0200 + +protontricks (1.5.0-1) experimental; urgency=medium + + * Initial release. (Closes: #977370) + + -- Stephan Lachnit Thu, 22 Apr 2021 21:24:34 +0200 diff --git a/debian/clean b/debian/clean new file mode 100644 index 0000000..64e9ca1 --- /dev/null +++ b/debian/clean @@ -0,0 +1,2 @@ +src/protontricks/_version.py +protontricks.egg-info/ diff --git a/debian/control b/debian/control index 0bcd8e0..3116304 100644 --- a/debian/control +++ b/debian/control @@ -1,19 +1,37 @@ -Source: upstream-name -Section: admin +Source: protontricks +Section: contrib/utils Priority: optional -Maintainer: name -Standards-Version: 4.6.1 -Build-Depends: debhelper-compat (= 13) +Maintainer: Debian Games Team +Uploaders: Stephan Lachnit +Build-Depends: + debhelper-compat (= 13), + dh-sequence-python3, + pybuild-plugin-pyproject, + python3-all, + python3-setuptools, + python3-setuptools-scm, + python3-vdf, + python3-pil, + python3-pytest, Rules-Requires-Root: no +Standards-Version: 4.7.0 +Homepage: https://github.com/Matoking/protontricks +Vcs-Browser: https://salsa.debian.org/games-team/protontricks +Vcs-Git: https://salsa.debian.org/games-team/protontricks.git +Testsuite: autopkgtest-pkg-python -Package: pkgname1 -Architecture: linux-any -# Delete any of these lines if un-used -Depends: ${misc:Depends}, depends -Recommends: high priority optdepends -Conflicts: conflicts -Suggests: low priority optdepends -Breaks: also conflicts!? -Provides: provides -# -Description: pkgdesc +Package: protontricks +Architecture: all +Depends: + ${misc:Depends}, + ${python3:Depends}, + python3-pil, + zenity, + winetricks, +Recommends: + steam-installer | steam-launcher, +Description: simple wrapper that does Winetricks things for Proton + Proton is a modified version of Wine used in Steam. This tool allows you to + use Winetricks commands for games in Steam using Proton. This is often useful + when a game requires closed-source runtime libraries that are not included + with Proton. diff --git a/debian/copyright b/debian/copyright index e69de29..d6628e6 100644 --- a/debian/copyright +++ b/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: protontricks +Upstream-Contact: Janne Pulkkinen +Source: https://github.com/Matoking/protontricks +Comment: protontricks is not part of the Debian distribution, but is in the + contrib archive area instead, because while protontricks itself is free + software. protontricks depends on steam, which is in the non-free section. + +Files: * +Copyright: 2018-2024 Janne Pulkkinen +License: GPL-3.0 + +Files: data/com.github.Matoking.protontricks.metainfo.xml +Copyright: 2018-2024 Janne Pulkkinen +License: CC0-1.0 + +Files: debian/* +Copyright: 2021-2024 Stephan Lachnit +License: GPL-3.0 + +License: GPL-3.0 + On Debian systems, the complete text of the General Public License version 3 + can be found in "/usr/share/common-licenses/GPL-3". + +License: CC0-1.0 + On Debian systems, the complete text of the Create Commons CC0-1.0 license + can be found in "/usr/share/common-licenses/CC0-1.0". diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..68f9a0d --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,5 @@ +[DEFAULT] +debian-branch = debian/latest +upstream-branch = upstream/latest +pristine-tar = True +filter = .gitignore diff --git a/debian/install b/debian/install new file mode 100644 index 0000000..35c3ea0 --- /dev/null +++ b/debian/install @@ -0,0 +1 @@ +data/com.github.Matoking.protontricks.metainfo.xml usr/share/metainfo/ diff --git a/debian/rules b/debian/rules index 64a084a..11cd9df 100755 --- a/debian/rules +++ b/debian/rules @@ -1,67 +1,4 @@ -#! /usr/bin/make -f +#!/usr/bin/make -f -## See debhelper(7) (uncomment to enable). -## Output every command that modifies files on the build system. -export DH_VERBOSE = 1 -export PIKA_BUILD_ARCH = $(shell cat ../pika-build-arch) - -## === the chain of command === -## debuild runs a chain of dh functions in the following order: -## dh_testdir -## dh_clean -## dh_auto_clean -## dh_update_autotools_config -## dh_autoreconf -## dh_auto_configure -## dh_prep -## dh_build -## dh_auto_build -## dh_install -## dh_auto_install -## dh_installdocs -## dh_installchangelogs -## dh_perl -## dh_link -## dh_strip_nondeterminism -## dh_compress -## dh_fixperms -## dh_missing -## dh_dwz -## dh_strip -## dh_makeshlibs -## dh_shlibdeps -## dh_installdeb -## dh_gencontrol -## but you are most likely to only need to override the following: -## dh_clean -## dh_auto_configure -## dh_build -## dh_install - -## === End end of region === - -## === overriding dh functions === -## by default all dh functions will run a specific command based on the build system selected by "dh $@" -## if you have a makefile that does everything you need this is fine, -## but most likely you have no MakeFile and you want to add your own commands -## Note : overrides must be places above %: -## So here's a few examples: - -## overriding dh_clean to make it not delete rust vendor files: -#override_dh_clean: -# echo "disabled" - -## overriding dh_auto_configure to add custom configs: -#override_dh_auto_configure: -# $(srcdir)/configure -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_DATADIR=/usr/share -DCMAKE_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu -DBUILD_PLUGIN=OFF - -## overriding dh_install to install files to a package: -#override_dh_auto_configure: -# mkdir -p debian/pikman/usr/bin -# cp pikman debian/pikman/usr/bin/ - -## === End end of region === - -## This here will start the build: %: - dh $@ + dh $@ --buildsystem=pybuild diff --git a/debian/salsa-ci.yml b/debian/salsa-ci.yml new file mode 100644 index 0000000..f80de86 --- /dev/null +++ b/debian/salsa-ci.yml @@ -0,0 +1,8 @@ +--- +include: + - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml + - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml + +variables: + SALSA_CI_COMPONENTS: 'main contrib non-free' + SALSA_CI_REPROTEST_ARGS: --variations=-kernel diff --git a/debian/tests/control b/debian/tests/control new file mode 100644 index 0000000..d1f8046 --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,3 @@ +Tests: pytest +Depends: @, python3-all, python3-pytest +Restrictions: skip-not-installable diff --git a/debian/tests/pytest b/debian/tests/pytest new file mode 100755 index 0000000..f2c0188 --- /dev/null +++ b/debian/tests/pytest @@ -0,0 +1,7 @@ +#!/bin/sh + +set -e + +for python in $(py3versions -s); do + $python -m pytest +done diff --git a/debian/upstream/metadata b/debian/upstream/metadata new file mode 100644 index 0000000..d086aab --- /dev/null +++ b/debian/upstream/metadata @@ -0,0 +1,4 @@ +Bug-Database: https://github.com/Matoking/protontricks/issues +Bug-Submit: https://github.com/Matoking/protontricks/issues/new +Repository: https://github.com/Matoking/protontricks.git +Repository-Browse: https://github.com/Matoking/protontricks diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..c3f1403 --- /dev/null +++ b/debian/watch @@ -0,0 +1,2 @@ +version=4 +https://github.com/Matoking/protontricks/tags (?:.*?/)?v?@ANY_VERSION@@ARCHIVE_EXT@