# Contributor: Leo # Maintainer: Leo pkgname=mkmr pkgver=0.0.14 pkgrel=0 pkgdesc="Make merge requests in any GitLab repo conveniently" options="!check" # No testsuite url="https://github.com/maxice8/mkmr" arch="noarch" license="GPL-3.0-or-later" depends=" python3 py3-setuptools py3-gitlab py3-gitpython py3-python-editor py3-inquirer py3-giturlparse " makedepends="scdoc" subpackages="$pkgname-doc" source="https://files.pythonhosted.org/packages/source/m/mkmr/mkmr-$pkgver.tar.gz" prepare() { default_prepare # Flit is dumb, use setuptools instead of distutilsc.core sed -i 's|distutils.core|setuptools|' setup.py } build() { python3 setup.py build for d in docs/*; do scdoc < $d > ${d%.scd} done } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" mkdir -p "$pkgdir"/usr/share/man/man1 mv docs/*.1 "$pkgdir"/usr/share/man/man1 } sha512sums="65cc737e773249a0d1c2e3eab60e652dbe83d55d3c2a4ba3d90ad2defc2aa4700d468be2b1094181023393a280edf6522619a24f1fb09cfd483600faaacf7c21 mkmr-0.0.14.tar.gz"