summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederik “Freso” S. Olesen2018-06-04 23:24:08 +0200
committerFrederik “Freso” S. Olesen2018-06-04 23:24:08 +0200
commit485cdc8ee2e2f4d408d18d21c1fd745e0f1835cf (patch)
tree59bcaef485013b4304219560f66a97c2abed3641
parent75bda53cfca9ea3e0770b53e59b5c0ec5ec12612 (diff)
downloadaur-485cdc8ee2e2f4d408d18d21c1fd745e0f1835cf.tar.gz
Generate and install man page
Based on core concept from patch submitted by Mrmaxmeier.
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD8
2 files changed, 8 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 6e1e978150f..695a9b575c5 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = gtimelog
pkgdesc = Small GTK+ app for keeping track of your time
pkgver = 0.11
- pkgrel = 3
+ pkgrel = 4
url = https://gtimelog.org/
arch = any
license = GPL
diff --git a/PKGBUILD b/PKGBUILD
index deedd384174..741f6816085 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,18 +3,22 @@
pkgname=gtimelog
pkgver=0.11
-pkgrel=3
+pkgrel=4
pkgdesc='Small GTK+ app for keeping track of your time'
arch=('any')
url='https://gtimelog.org/'
license=('GPL')
depends=('python' 'python-gobject' 'python-setuptools')
+makedepends=('python-docutils')
source=("https://files.pythonhosted.org/packages/33/e5/789ef0fc2280da0ba67bae24317ee77158f23be751835c8d9dc9f0198f21/$pkgname-${pkgver}.tar.gz")
sha256sums=('ab43075afdd732e35bfc9f39ee425c23efe0f68258f3bc5688791a12028e6fc7')
build() {
cd "$pkgname-$pkgver"
python setup.py build
+
+ # Generate man page
+ rst2man gtimelog.rst > gtimelog.1
}
package() {
@@ -25,6 +29,8 @@ package() {
install -Dm0644 "${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
install -Dm0644 "src/${pkgname}/${pkgname}.png" "${pkgdir}/usr/share/icons/hicolor/48x48/apps/${pkgname}.png"
install -Dm0644 "src/${pkgname}/${pkgname}-large.png" "${pkgdir}/usr/share/icons/hicolor/512x512/apps/${pkgname}.png"
+ # Install man page
+ install -Dm0644 "gtimelog.1" "${pkgdir}/usr/share/man/man1/${pkgname}.1"
# Install additional documentation
install -Dm0644 "CHANGES.rst" "${pkgdir}/usr/share/doc/${pkgname}/CHANGES.rst"
install -Dm0644 "CONTRIBUTING.rst" "${pkgdir}/usr/share/doc/${pkgname}/CONTRIBUTING.rst"