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

_name=hypersocial
pkgname=python-${_name}
pkgver=0.2.2.2
pkgrel=1
pkgdesc="Python program to post RSS to GNU Social & Pump.io (gnusrss and spigot fork)"
arch=('any')
url="https://git.hyperbola.info:50100/services/hypersocial.git/"
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://git.hyperbola.info:50100/services/${_name}.git/plain/releases/${_name}-${pkgver}.tar.gz"{,.sig})
sha512sums=('87f41a72c77de2140759d8d626c09105ea81dde13c22bb1d9535d36e2f5170e43890903b06ec6469c00e24be7fd0972002383d90c036219577cc4d4e85fdd9aa'
            'SKIP')
validpgpkeys=('6DB9C4B4F0D8C0DC432CF6E4227CA7C556B2BA78') # David P.

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

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