summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorPhilipp A2020-05-02 13:57:20 +0200
committerPhilipp A2020-05-02 13:57:20 +0200
commit3608448966f525a54aeca4e59b4fd599291632c5 (patch)
treecc7d97cac077dd32887e2ff5a982c0f54f1b9e07 /PKGBUILD
downloadaur-python-psaw.tar.gz
init
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD23
1 files changed, 23 insertions, 0 deletions
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"
+}