summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO12
-rw-r--r--.gitignore7
-rw-r--r--PKGBUILD25
3 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..4ee940e6a3a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,12 @@
+pkgbase = python-asyncstdlib
+ pkgdesc = The missing toolbox for an async world
+ pkgver = 3.9.2
+ pkgrel = 1
+ url = https://github.com/maxfischer2781/asyncstdlib
+ arch = any
+ license = MIT
+ depends = python-typing_extensions
+ source = https://pypi.org/packages/source/a/asyncstdlib/asyncstdlib-3.9.2.tar.gz
+ sha256sums = 2b9c729d238df39f4728f59303b152d5e9ff89860256d567609c91deba2848f3
+
+pkgname = python-asyncstdlib
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..4dab8d6386e
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,7 @@
+# Ignore everything
+*
+
+# But not these files...
+!.gitignore
+!PKGBUILD
+!.SRCINFO
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..03ab1b643d2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Mark Wagie <mark dot wagie at tutanota dot com>
+pkgname=python-asyncstdlib
+_name=${pkgname#python-}
+pkgver=3.9.2
+pkgrel=1
+pkgdesc="The missing toolbox for an async world"
+arch=('any')
+url="https://github.com/maxfischer2781/asyncstdlib"
+license=('MIT')
+depends=('python-typing_extensions')
+source=("https://pypi.org/packages/source/${_name:0:1}/$_name/$_name-$pkgver.tar.gz")
+sha256sums=('2b9c729d238df39f4728f59303b152d5e9ff89860256d567609c91deba2848f3')
+
+build() {
+ cd "$_name-$pkgver"
+ python setup.py build
+}
+
+package() {
+ cd "$_name-$pkgver"
+ export PYTHONHASHSEED=0
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+ install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
+}