[arch-commits] Commit in python-geoipsets/repos/community-any (PKGBUILD)
Justin Kromlinger
hashworks at gemini.archlinux.org
Mon Aug 29 13:42:39 UTC 2022
Date: Monday, August 29, 2022 @ 13:42:38
Author: hashworks
Revision: 1285191
archrelease: copy trunk to community-any
Added:
python-geoipsets/repos/community-any/PKGBUILD
(from rev 1285190, python-geoipsets/trunk/PKGBUILD)
----------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
Copied: python-geoipsets/repos/community-any/PKGBUILD (from rev 1285190, python-geoipsets/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-08-29 13:42:38 UTC (rev 1285191)
@@ -0,0 +1,43 @@
+# Maintainer: Justin Kromlinger <hashworks at archlinux.org>
+
+pkgname=python-geoipsets
+pkgver=2.3.4
+pkgrel=2
+pkgdesc='Tool to generate country-specific IP ranges for iptables/ipset and nftables'
+arch=('any')
+license=('GPL3')
+url='https://github.com/chr0mag/geoipsets/tree/main/python'
+depends=(
+ 'python-requests'
+ 'python-beautifulsoup4'
+)
+makedepends=(
+ 'python-setuptools'
+)
+checkdepends=('python-pytest')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/chr0mag/geoipsets/archive/refs/tags/v${pkgver}.tar.gz")
+sha512sums=('b92d45cc3db3aaf465c64b126774df9656836513d9d3ad03fb979ab15b62b6f8b7270a665f39fafb129f42f2a1c95a77b85e0689b7a62e32b31a9a48082adfb2')
+
+build() {
+ cd "geoipsets-$pkgver/python"
+
+ python setup.py build
+}
+
+check() {
+ cd "geoipsets-$pkgver/python"
+
+ python -m pytest
+}
+
+package() {
+ cd "geoipsets-$pkgver/python"
+
+ python setup.py install --root="$pkgdir" --optimize=1
+
+ install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README_python.md"
+ install -Dm644 ../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -Dm644 ../README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
+ install -Dm644 ../systemd/update-geoipsets.service "${pkgdir}/usr/lib/systemd/system/update-geoipsets.service"
+ install -Dm644 ../systemd/update-geoipsets.timer "${pkgdir}/usr/lib/systemd/system/update-geoipsets.timer"
+}
More information about the arch-commits
mailing list