From 97c3fd2ac4996e176235b00f2949579882768d31 Mon Sep 17 00:00:00 2001 From: Christian Schendel Date: Thu, 25 Dec 2025 18:22:55 +0100 Subject: [PATCH] upgpkg: python-vdf: initial upload --- .SRCINFO | 16 ++++++++++++++++ .gitignore | 17 +++++++++++++++++ .nvchecker.toml | 5 +++++ LICENSE | 12 ++++++++++++ LICENSES/0BSD.txt | 1 + PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++ REUSE.toml | 22 ++++++++++++++++++++++ 7 files changed, 119 insertions(+) create mode 100644 .SRCINFO create mode 100644 .gitignore create mode 100644 .nvchecker.toml create mode 100644 LICENSE create mode 120000 LICENSES/0BSD.txt create mode 100644 PKGBUILD create mode 100644 REUSE.toml diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..62f555e --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = python-vdf + pkgdesc = Library for working with Valve's VDF text format + pkgver = 4.0 + pkgrel = 2 + url = https://github.com/solsticegamestudios/vdf + arch = any + license = MIT + checkdepends = python-nose + checkdepends = python-coverage + checkdepends = python-pytest + makedepends = python-setuptools + depends = python>=3.6 + source = python-vdf-4.0.tar.gz::https://github.com/solsticegamestudios/vdf/archive/v4.0.tar.gz + sha256sums = 1d778663f1158be0f70aa1cdd5b2685ae6eee14e4d11a0d96684b7ed86e89c93 + +pkgname = python-vdf diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a8267d1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,17 @@ +# Ignore everything +* + +# But not these files... +!.gitignore +!PKGBUILD +!.SRCINFO +!LICENSE +!chroot-build +!.nvchecker.toml +!/keys +!/keys/pgp +!/keys/pgp/*.asc +!/LICENSES +!/LICENSES/*.txt +!REUSE.toml +!*.patch diff --git a/.nvchecker.toml b/.nvchecker.toml new file mode 100644 index 0000000..744cbe0 --- /dev/null +++ b/.nvchecker.toml @@ -0,0 +1,5 @@ +[python-vdf] +source = "git" +git = "https://github.com/solsticegamestudios/vdf" +prefix = "v" +exclude_regex = ".*alpha.*" diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..b87c5e4 --- /dev/null +++ b/LICENSE @@ -0,0 +1,12 @@ +Copyright Arch Linux Contributors + +Permission to use, copy, modify, and/or distribute this software for +any purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL +WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES +OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE +FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY +DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN +AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT +OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/LICENSES/0BSD.txt b/LICENSES/0BSD.txt new file mode 120000 index 0000000..ea5b606 --- /dev/null +++ b/LICENSES/0BSD.txt @@ -0,0 +1 @@ +../LICENSE \ No newline at end of file diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..f998075 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: Christian Schendel +# Maintainer: Rhinoceros +# Contributor: Abhishek Mudgal +# Contributor: Ivan Semkin (ivan at semkin dot ru) + +_pkgname=vdf +pkgname=python-vdf +pkgver=4.0 +pkgrel=2 +pkgdesc="Library for working with Valve's VDF text format" +arch=('any') +url='https://github.com/solsticegamestudios/vdf' +license=( + MIT +) +depends=( + 'python>=3.6' +) +makedepends=( + python-setuptools +) +checkdepends=( + python-nose + python-coverage + python-pytest +) +source=( + "$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz" +) +b2sums=('1d4cddc7057081c8aefb1bf603eca8cac69c62926643459b88d856e49938b461e106a89d6fe09dfb3a6ee3956af6fbf9cb9e3d2fca82665eb2f1dbe1198bc5d6') + +build() { + cd "$_pkgname-$pkgver" + python setup.py build +} + +check() { + cd "$_pkgname-$pkgver" + pytest tests +} + +package() { + cd "$_pkgname-$pkgver" + python setup.py install --optimize=1 --root="${pkgdir}/" + install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} diff --git a/REUSE.toml b/REUSE.toml new file mode 100644 index 0000000..8501755 --- /dev/null +++ b/REUSE.toml @@ -0,0 +1,22 @@ +version = 1 + +[[annotations]] +path = [ + "PKGBUILD", + "README.md", + "keys/**", + ".SRCINFO", + ".nvchecker.toml", + "*.install", + "*.sysusers", + "*.tmpfiles", + "*.logrotate", + "*.pam", + "*.service", + "*.socket", + "*.timer", + "*.desktop", + "*.hook", +] +SPDX-FileCopyrightText = "Arch Linux contributors" +SPDX-License-Identifier = "0BSD"