summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp A2020-05-02 13:57:20 +0200
committerPhilipp A2020-05-02 13:57:20 +0200
commit3608448966f525a54aeca4e59b4fd599291632c5 (patch)
treecc7d97cac077dd32887e2ff5a982c0f54f1b9e07
downloadaur-3608448966f525a54aeca4e59b4fd599291632c5.tar.gz
init
-rw-r--r--.SRCINFO17
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD23
3 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..bd2311c09bb
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = python-psaw
+ pkgdesc = Pushshift.io API Wrapper for reddit.com public comment/submission search
+ pkgver = 0.0.12
+ pkgrel = 1
+ url = https://github.com/dmarx/psaw
+ arch = any
+ license = BSD
+ makedepends = install-wheel-scripts
+ depends = python
+ depends = python-requests
+ depends = python-click
+ noextract = psaw-0.0.12-py3-none-any.whl
+ source = https://files.pythonhosted.org/packages/py3/p/psaw/psaw-0.0.12-py3-none-any.whl
+ sha256sums = cfbfdf1953ee5f31ca9d4ec6d471873ace960da9fbc7234b9d19a059d5cfa2d6
+
+pkgname = python-psaw
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..4d7ad300862
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+/src/
+/pkg/
+/*.whl
+/*.pkg.tar.xz
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..bfd0fbd857e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,23 @@
+# Maintainer: Philipp A. <flying-sheep@web.de>
+
+_name=psaw
+pkgname=python-$_name
+pkgver=0.0.12
+pkgrel=1
+pkgdesc='Pushshift.io API Wrapper for reddit.com public comment/submission search'
+arch=('any')
+url="https://github.com/dmarx/$_name"
+license=('BSD')
+depends=(python python-requests python-click)
+makedepends=(install-wheel-scripts)
+_wheel="$_name-$pkgver-py3-none-any.whl"
+source=("https://files.pythonhosted.org/packages/py3/${_name::1}/$_name/$_wheel")
+sha256sums=('cfbfdf1953ee5f31ca9d4ec6d471873ace960da9fbc7234b9d19a059d5cfa2d6')
+noextract=("$_wheel")
+
+package() {
+ local site="$pkgdir/usr/lib/$(readlink /bin/python3)/site-packages"
+ mkdir -p "$site"
+ unzip "$_wheel" -d "$site"
+ install-wheel-scripts --prefix="$pkgdir/usr" "$_wheel"
+}