Date: Thursday, May 18, 2023 @ 01:39:13 Author: grawlinson Revision: 1463021
archrelease: copy trunk to community-any Added: python-shodan/repos/community-any/PKGBUILD (from rev 1463020, python-shodan/trunk/PKGBUILD) Deleted: python-shodan/repos/community-any/PKGBUILD ----------+ PKGBUILD | 99 ++++++++++++++++++++++++++++++++++--------------------------- 1 file changed, 56 insertions(+), 43 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2023-05-18 01:38:27 UTC (rev 1463020) +++ PKGBUILD 2023-05-18 01:39:13 UTC (rev 1463021) @@ -1,43 +0,0 @@ -# Maintainer: George Rawlinson <grawlin...@archlinux.org> -# Contributor: liara <liara@archlinux.email> - -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 -} Copied: python-shodan/repos/community-any/PKGBUILD (from rev 1463020, python-shodan/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2023-05-18 01:39:13 UTC (rev 1463021) @@ -0,0 +1,56 @@ +# Maintainer: George Rawlinson <grawlin...@archlinux.org> +# Contributor: liara <liara@archlinux.email> + +pkgname=python-shodan +pkgver=1.29.1 +pkgrel=1 +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' + 'python-build' + 'python-installer' + 'python-wheel' +) +optdepends=('python-ujson: faster JSON decoding') +_commit='9ccc16ada4761d19ee2079a9334cac3ddbc62415' +source=("$pkgname::git+https://github.com/achillean/shodan-python.git#commit=$_commit") +b2sums=('SKIP') + +pkgver() { + cd "$pkgname" + + # https://github.com/achillean/shodan-python/issues/185 + # git describe --tags | sed 's/^v//' + + grep 'version=' setup.py | sed -e "s/^ version='\(.*\)',/\1/" +} + +build() { + cd "$pkgname" + + python -m build --wheel --no-isolation +} + +package() { + cd "$pkgname" + + python -m installer --destdir="$pkgdir" dist/*.whl + + # symlink license file + local site_packages=$(python -c "import site; print(site.getsitepackages()[0])") + install -d "$pkgdir/usr/share/licenses/$pkgname" + ln -s "$site_packages/${pkgname#python-}-$pkgver.dist-info/LICENSE" \ + "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +}