[arch-commits] Commit in (4 files)
George Rawlinson
grawlinson at gemini.archlinux.org
Tue Apr 12 03:34:14 UTC 2022
Date: Tuesday, April 12, 2022 @ 03:34:13
Author: grawlinson
Revision: 1185929
addpkg: python-shodan 1.27.0-1
Added:
python-shodan/
python-shodan/repos/
python-shodan/trunk/
python-shodan/trunk/PKGBUILD
----------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
Added: python-shodan/trunk/PKGBUILD
===================================================================
--- python-shodan/trunk/PKGBUILD (rev 0)
+++ python-shodan/trunk/PKGBUILD 2022-04-12 03:34:13 UTC (rev 1185929)
@@ -0,0 +1,45 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+# Contributor: liara <liara at archlinux.email>
+
+pkgname=python-shodan
+pkgver=1.27.0
+pkgrel=1
+pkgdesc='The official Python library and CLI for Shodan'
+url='https://developer.shodan.io/'
+license=('MIT')
+arch=('any')
+depends=(
+ 'python'
+ 'python-click'
+ 'python-click-plugins'
+ 'python-colorama'
+ 'python-xlsxwriter'
+ 'python-requests'
+)
+makedepends=(
+ 'git'
+ 'python-setuptools'
+)
+_commit='b32a7bc3f45f62c7ce962cea5954dd8b82fa6824'
+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
+}
More information about the arch-commits
mailing list