summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authordreieck2023-05-12 14:18:27 +0200
committerdreieck2023-05-12 14:18:27 +0200
commit7d3eaeec1531c52e8b70bbd280c712b28287e359 (patch)
tree4874f59e3ce4b0d571307a651b8195e31e2092e7
downloadaur-7d3eaeec1531c52e8b70bbd280c712b28287e359.tar.gz
Initial commit.
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD42
-rw-r--r--license-metapackage-pd.txt3
3 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..bc3a291d9810
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = python-argparse-shim
+ pkgdesc = Explicitly provides the dependency 'python-argparse', which is part of 'python'. The package 'python-argparse' must not be installed, but some packages depend on it, so this is a workaround. See https://bugs.archlinux.org/task/78484.
+ pkgver = 3.11.3
+ pkgrel = 1
+ url = https://www.python.org
+ arch = any
+ license = custom: Public Domain.
+ depends = python>=3.2
+ provides = python-argparse=3.11.3
+ conflicts = python-argparse
+ source = license-metapackage-pd.txt
+ sha256sums = af68dd29515606a94237214e4c33b0e3f4f2408ed92df3674a043bf2fa2c0078
+
+pkgname = python-argparse-shim
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..8289eda20877
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: dreieck (https://aur.archlinux.org/account/dreieck)
+
+_depends="python>=3.2"
+pkgname="python-argparse-shim"
+pkgver=3.11.3
+pkgrel=1
+pkgdesc="Explicitly provides the dependency 'python-argparse', which is part of 'python'. The package 'python-argparse' must not be installed, but some packages depend on it, so this is a workaround. See https://bugs.archlinux.org/task/78484."
+arch=(
+ 'any'
+)
+
+url="https://www.python.org"
+license=("custom: Public Domain.")
+depends=(
+ "${_depends}"
+)
+makedepends=()
+checkdepends=()
+provides=(
+ "python-argparse=${pkgver}"
+)
+replaces=(
+ "python-argparse"
+)
+conflicts=(
+ "python-argparse"
+)
+replaces=()
+
+source=(
+ 'license-metapackage-pd.txt'
+)
+sha256sums=(
+ 'af68dd29515606a94237214e4c33b0e3f4f2408ed92df3674a043bf2fa2c0078'
+)
+pkgver() {
+ pacman -Q "${_depends%%>*}" | cut -d ' ' -f 2 | sed -E 's|-.*||'
+}
+
+package() {
+ install -D -v -m644 "${srcdir}/license-metapackage-pd.txt" "${pkgdir}/usr/share/licenses/${pkgname}/copying.public-domain.txt"
+}
diff --git a/license-metapackage-pd.txt b/license-metapackage-pd.txt
new file mode 100644
index 000000000000..d224bc0d95b6
--- /dev/null
+++ b/license-metapackage-pd.txt
@@ -0,0 +1,3 @@
+This is a metapackage and it is released unter public domain.
+
+The actual software this metapackage depends on most probably has its own licensing terms.