# Maintainer: Abdó Roig-Maranges pkgname=git-spindle pkgver=3.3 pkgrel=1 pkgdesc="Git subcommands for integrating with central services like github, gitlab and bitbucket" arch=('any') url="http://github.com/seveas/git-spindle" license=('GPL3') depends=('git' 'python' 'python-github3' 'python-whelk' 'python-docopt') makedepends=('make' 'python-sphinx') optdepends=() source=("https://github.com/seveas/git-spindle/archive/${pkgver}.tar.gz") sha256sums=('4bfad8e716e16e267c1297bb66b563a5eb4a3f90d618338442529a9c773bd4d1') prepare() { cd "${srcdir}/git-spindle-${pkgver}" # NOTE: Since we only build the man page, we tweak docs configuration so that # it does not require a sphinx theme. sed -i '/csp/d' "docs/conf.py" } build() { cd "$srcdir/git-spindle-${pkgver}" python setup.py build LANG=en_US.UTF-8 make -C docs man } package() { cd "$srcdir/git-spindle-${pkgver}" python setup.py install --prefix=/usr --root="$pkgdir" install -d "$pkgdir/usr/share/man/man1/" install -m644 docs/_build/man/*.1 "$pkgdir/usr/share/man/man1/" } # vim:set ts=2 sw=2 et: