Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/build-support/disabled/python-packaging-bootstrap/PKGBUILD
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2023-05-11 16:19:55 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2023-05-11 16:19:55 +0200
commit68a426c2e000489c6ba151ca9af6f0132a1358e3 (patch)
treee45c780636b2755186f7c48cdf78b6daa2c72ea5 /build-support/disabled/python-packaging-bootstrap/PKGBUILD
parent1d4c7bf88bec357d5e9c4d21dabc46e51ec3617b (diff)
moved some old Python bootstrapping packages to disabled build-support
Diffstat (limited to 'build-support/disabled/python-packaging-bootstrap/PKGBUILD')
-rw-r--r--build-support/disabled/python-packaging-bootstrap/PKGBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/build-support/disabled/python-packaging-bootstrap/PKGBUILD b/build-support/disabled/python-packaging-bootstrap/PKGBUILD
new file mode 100644
index 00000000..db4de3a4
--- /dev/null
+++ b/build-support/disabled/python-packaging-bootstrap/PKGBUILD
@@ -0,0 +1,44 @@
+# upstream git revision: a6efc98e6cda125be25a45410c45f87a8769ca76
+
+# Maintainer: Erich Eckner <deep42thought at archlinux32 dot org>
+# Contributor: Felix Yan <felixonmars@archlinux.org>
+
+# heavily borrowed from python-packagings PKGBUILD
+
+pkgbase=python-packaging-bootstrap
+_pkgbase="${pkgbase%-*}"
+pkgname=(python-packaging-bootstrap python2-packaging-bootstrap)
+pkgver='20.9'
+pkgrel='1'
+pkgdesc="Core utilities for Python packages - bootstrap version"
+arch=('any')
+url="https://github.com/pypa/packaging"
+license=('Apache')
+makedepends=('python-dephell' 'python-setuptools' 'python2-setuptools' 'python-pyparsing'
+ 'python2-pyparsing')
+source=("https://github.com/pypa/packaging/archive/$pkgver/$_pkgbase-$pkgver.tar.gz")
+sha512sums=('fb71f1036cfaacbe94fdee663af31d6ad1960f73ecc95cba87b461c2d7d2ea90085853bb4682b146492d8c48f784b60ef082e3b1259269857166b143cd9a920b')
+
+build() {
+ cd packaging-$pkgver
+ python setup.py build
+ python2 setup.py build
+}
+
+package_python-packaging-bootstrap() {
+ depends=('python-pyparsing' 'python-six')
+ provides=("python-packaging=$pkgver")
+ conflicts=('python-packaging')
+
+ cd packaging-$pkgver
+ python setup.py install --root "$pkgdir"
+}
+
+package_python2-packaging-bootstrap() {
+ depends=('python2-pyparsing' 'python2-six')
+ provides=("python2-packaging=$pkgver")
+ conflicts=('python2-packaging')
+
+ cd packaging-$pkgver
+ python2 setup.py install --root "$pkgdir"
+}