# Maintainer: Pellegrino Prevete (tallero) # Contributor: John Beard # shellcheck disable=SC2034 _pkgname=daty pkgname="${_pkgname}-git" pkgver=1.0beta+81+g1a5dce4 pkgrel=2 pkgdesc='Daty Wikidata Editor' url="https://gitlab.gnome.org/World/${_pkgname}" license=('AGPLv3') arch=('x86_64') depends=( 'libhandy0' 'python-appdirs' 'python-bleach' 'python-beautifulsoup4' 'python-gobject' 'python-requests' 'python-setproctitle' 'python-pywikibot' ) makedepends=( 'git' 'python-setuptools' ) provides=("${_pkgname}") conflicts=("${_pkgname}") source=("${_pkgname}::git+${url}.git") sha512sums=('SKIP') pkgver() { cd "${_pkgname}" git describe --tags | sed 's/-/+/g' } # shellcheck disable=SC2154 package() { cd "${_pkgname}" python3 setup.py install --root="${pkgdir}" --optimize=1 } check() ( glib-compile-schemas "${GSETTINGS_SCHEMA_DIR:=$PWD/$_pkgname/data}" export GSETTINGS_SCHEMA_DIR )