diff options
author | Mark Blakeney | 2024-06-04 15:09:47 +1000 |
---|---|---|
committer | Mark Blakeney | 2024-06-04 15:09:47 +1000 |
commit | cce7fe8bd228b65546b6e90d23e4584c26592789 (patch) | |
tree | 60abdd43b4de179920332b4f403104f1aef778ad | |
download | aur-cce7fe8bd228b65546b6e90d23e4584c26592789.tar.gz |
Initial version 1.0
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 28 |
3 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..3738f29e0fdc --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = pystand + pkgdesc = Install Python Versions From The Python-Build-Standalone Project + pkgver = 1.0 + pkgrel = 1 + url = https://github.com/bulletmark/pystand + arch = any + license = GPL3 + makedepends = python-setuptools + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel + makedepends = python-setuptools-scm + depends = python>=3.8 + depends = python-argcomplete + depends = python-packaging + depends = python-platformdirs + depends = python-pygithub + source = pystand-1.0.tar.gz::https://github.com/bulletmark/pystand/archive/1.0.tar.gz + sha1sums = ff13931f603366e627f2a1e16913dda3f2567035 + +pkgname = pystand diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..ad6fbda9f142 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +pkg/ +src/ +*.tar +*.tar.* +*.[gx]z diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4903502f3394 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: mark.blakeney at bullet-systems dot net +pkgname=pystand +pkgver=1.0 +pkgrel=1 +pkgdesc="Install Python Versions From The Python-Build-Standalone Project" +url="https://github.com/bulletmark/$pkgname" +license=(GPL3) +arch=(any) +depends=("python>=3.8" "python-argcomplete" "python-packaging" + "python-platformdirs" "python-pygithub") +makedepends=(python-setuptools python-build python-installer + python-wheel python-setuptools-scm) +source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz") +sha1sums=('ff13931f603366e627f2a1e16913dda3f2567035') + +build() { + cd "$srcdir/$pkgname-$pkgver" + # Have to suppress error while this packaging error exists: + # https://github.com/pypa/packaging-problems/issues/742 + SETUPTOOLS_SCM_PRETEND_VERSION="$pkgver" python -m build --wheel --no-isolation 2>/dev/null +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + python -m installer --destdir="$pkgdir" dist/*.whl +} + +# vim:set ts=2 sw=2 et: |