# Maintainer: David P. <megver83@hyperbola.info>
# Contributor: André Silva <emulatorman@hyperbola.info>

_name=hypersocial
pkgname=python-${_name}
pkgver=0.2.3
pkgrel=2
pkgdesc="Python program to post RSS to GNU Social & Pump.io (gnusrss and spigot fork)"
arch=('any')
url="https://gitlab.com/Megver83/hypersocial/"
license=('GPL')
depends=('python-feedparser' 'python-pycurl' 'sqlite' 'python-pypump' 'python-requests' 'python-argparse')
makedepends=('python-setuptools')
conflicts=('python-gnusrss')
provides=('python-gnusrss')
source=("https://gitlab.com/Megver83/${_name}/-/archive/${pkgver}/${_name}-${pkgver}.tar.gz")
sha512sums=('73a2f2daeb77ecff590a9275b7b0d8d5e98be6c6443e00129e9595876e50a2236909757d182b8f59235fe8c6a2974f3143db7c9b4970d25e10920ca6c0048097')
validpgpkeys=('6DB9C4B4F0D8C0DC432CF6E4227CA7C556B2BA78') # David P.

package() {
  cd "${srcdir}/${_name}-${pkgver}"
  python setup.py install --root="${pkgdir}/" --optimize=1

  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
