yochananmarqos

python-whois

Sep 29th, 2020
151
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pkgname=python-whois
  2. pkgver=0.7.3
  3. pkgrel=1
  4. pkgdesc="Whois querying and parsing of domain registration information"
  5. arch=('any')
  6. url="https://github.com/richardpenman/whois"
  7. license=('MIT')
  8. depends=('python-future')
  9. makedepends=('python-setuptools')
  10. optdepends=('python-dateutil: better date conversion')
  11. source=("https://pypi.org/packages/source/${pkgname:0:1}/$pkgname/$pkgname-$pkgver.tar.gz")
  12. sha256sums=('656a1100b8757f29daf010ec5a893a3d6349ccf097884021988c174eedea4a16')
  13.  
  14. build() {
  15.     cd "$pkgname-$pkgver"
  16.     python setup.py build
  17. }
  18.  
  19. package() {
  20.     cd "$pkgname-$pkgver"
  21.     python setup.py install --root="$pkgdir" --optimize=1 --skip-build
  22.  
  23.     install -Dm644 LICENSE.txt -t "$pkgdir/usr/share/licenses/$pkgname"
  24. }
RAW Paste Data