From 0a9e5b6ff85aace82ce145b67badfedec06b49f1 Mon Sep 17 00:00:00 2001 From: Tharre Date: Wed, 25 Jul 2018 18:47:41 +0200 Subject: Add man pages Since the package in PyPI doesn't include them, we also download the tarball from github releases directly. --- .SRCINFO | 6 +++--- PKGBUILD | 10 ++++++---- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index f203b56..2686320 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,13 +1,13 @@ pkgbase = grokmirror pkgdesc = Framework to smartly mirror git repositories pkgver = 1.1.0 - pkgrel = 1 + pkgrel = 2 url = https://github.com/mricon/grokmirror arch = any license = GPL3 depends = python-setuptools - source = https://files.pythonhosted.org/packages/source/g/grokmirror/grokmirror-1.1.0.tar.gz - sha256sums = e687f5242e15402352d425b350f69508f577aa4466c0c236b0fa1c8bda8c27fe + source = grokmirror-1.1.0::https://github.com/mricon/grokmirror/archive/v1.1.0.tar.gz + sha256sums = c838df4e9f055b269dd9664c554586d05cc91db337f559b3c2318aba24c89354 pkgname = grokmirror diff --git a/PKGBUILD b/PKGBUILD index 5ecbbae..a09ec0b 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,14 +2,14 @@ pkgname=grokmirror pkgver=1.1.0 -pkgrel=1 +pkgrel=2 pkgdesc='Framework to smartly mirror git repositories' url='https://github.com/mricon/grokmirror' arch=('any') license=('GPL3') depends=('python-setuptools') -source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/${pkgname}/${pkgname}-${pkgver}.tar.gz") -sha256sums=('e687f5242e15402352d425b350f69508f577aa4466c0c236b0fa1c8bda8c27fe') +source=("${pkgname}-${pkgver}::https://github.com/mricon/grokmirror/archive/v${pkgver}.tar.gz") +sha256sums=('c838df4e9f055b269dd9664c554586d05cc91db337f559b3c2318aba24c89354') build() { cd "${pkgname}-${pkgver}" @@ -18,5 +18,7 @@ build() { package() { cd "${pkgname}-${pkgver}" - python setup.py install --root="$pkgdir/" --optimize=1 --skip-build + python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build + + install -Dm644 -t "${pkgdir}/usr/share/man/man1/" "man/"*.1 } -- cgit v1.2.3-70-g09d2