Date: Saturday, April 8, 2023 @ 03:11:20
  Author: felixonmars
Revision: 1441557

archrelease: copy trunk to community-staging-any

Added:
  python-shodan/repos/community-staging-any/
  python-shodan/repos/community-staging-any/PKGBUILD
    (from rev 1441555, python-shodan/trunk/PKGBUILD)

----------+
 PKGBUILD |   43 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

Copied: python-shodan/repos/community-staging-any/PKGBUILD (from rev 1441555, 
python-shodan/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-08 03:11:20 UTC (rev 1441557)
@@ -0,0 +1,43 @@
+# Maintainer: George Rawlinson <[email protected]>
+# Contributor: liara <[email protected]>
+
+pkgname=python-shodan
+pkgver=1.28.0
+pkgrel=2
+pkgdesc='The official Python library and CLI for Shodan'
+url='https://shodan.readthedocs.io/'
+license=('MIT')
+arch=('any')
+depends=(
+  'python'
+  'python-click'
+  'python-click-plugins'
+  'python-colorama'
+  'python-xlsxwriter'
+  'python-requests'
+  'python-setuptools'
+)
+makedepends=('git')
+_commit='7d043d74735cfaf0b0b5dc8fbc81922ba117dfea'
+source=("$pkgname::git+https://github.com/achillean/shodan-python.git#commit=$_commit";)
+b2sums=('SKIP')
+
+pkgver() {
+  cd "$pkgname"
+
+  git describe --tags | sed 's/^v//'
+}
+
+build() {
+  cd "$pkgname"
+
+  python setup.py build
+}
+
+package() {
+  cd "$pkgname"
+
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+  install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
+}

Reply via email to