summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <emmanuel.peyrot@collabora.com>2016-10-28 16:35:42 +0100
committerEmmanuel Gil Peyrot <emmanuel.peyrot@collabora.com>2016-10-28 16:35:42 +0100
commit17fe696337367984a811236979f503a6f8c2792f (patch)
treed95ea5f933b110277387ca900f42debd00b77d4f
parent2cedd8d92cd3407562683e1448059cbeb24e4158 (diff)
Also generate and install the manpage.
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD9
2 files changed, 9 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c87b801..a255b01 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,5 +1,5 @@
1# Generated by mksrcinfo v8 1# Generated by mksrcinfo v8
2# Fri Oct 28 15:30:48 UTC 2016 2# Fri Oct 28 15:35:30 UTC 2016
3pkgbase = git-phab-git 3pkgbase = git-phab-git
4 pkgdesc = Git subcommand to integrate with phabricator 4 pkgdesc = Git subcommand to integrate with phabricator
5 pkgver = r163.b59c888 5 pkgver = r163.b59c888
@@ -8,6 +8,7 @@ pkgbase = git-phab-git
8 arch = any 8 arch = any
9 license = GPL2 9 license = GPL2
10 makedepends = git 10 makedepends = git
11 makedepends = asciidoc
11 depends = python-git 12 depends = python-git
12 depends = python-phabricator 13 depends = python-phabricator
13 depends = python-argcomplete 14 depends = python-argcomplete
diff --git a/PKGBUILD b/PKGBUILD
index c74daed..ba538e6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -11,7 +11,7 @@ license=('GPL2')
11depends=('python-git' 'python-phabricator' 'python-argcomplete' 'python-appdirs') 11depends=('python-git' 'python-phabricator' 'python-argcomplete' 'python-appdirs')
12provides=("$_pkgname") 12provides=("$_pkgname")
13conflicts=("$_pkgname") 13conflicts=("$_pkgname")
14makedepends=('git') 14makedepends=('git' 'asciidoc')
15source=("$_pkgname::git://anongit.freedesktop.org/git/$_pkgname") 15source=("$_pkgname::git://anongit.freedesktop.org/git/$_pkgname")
16md5sums=('SKIP') 16md5sums=('SKIP')
17 17
@@ -20,9 +20,14 @@ pkgver() {
20 echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)" 20 echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
21} 21}
22 22
23build() {
24 cd "$srcdir/$_pkgname"
25 a2x --doctype manpage --format manpage git-phab.txt
26}
27
23package() { 28package() {
24 cd "$srcdir/$_pkgname" 29 cd "$srcdir/$_pkgname"
25 install -Dm755 git-phab "$pkgdir/usr/bin/$_pkgname" 30 install -Dm755 git-phab "$pkgdir/usr/bin/$_pkgname"
26 install -Dm644 git-phab.txt "$pkgdir/usr/share/doc/$_pkgname/$_pkgname.txt" 31 install -Dm644 git-phab.1 "$pkgdir/usr/share/man/man1/$_pkgname.1"
27 install -Dm644 README.md "$pkgdir/usr/share/doc/$_pkgname/README" 32 install -Dm644 README.md "$pkgdir/usr/share/doc/$_pkgname/README"
28} 33}