summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e1c16e0684cf96896a7b0daadeb4995aa4a95558 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Maintainer: Andrzej Giniewicz <gginiu@gmail.com>
# Contributor: TDY <tdy@gmx.com>

pkgname=hgview
pkgver=1.10.7
pkgrel=1
pkgdesc="A fast Mercurial log navigator"
arch=('any')
url="https://www.logilab.org/project/hgview/"
license=('GPL')
depends=('mercurial>=1.6' 'python2-urwid' 'python2-pyinotify' 'python2-pygments' 'python2-pyqt4')
makedepends=('asciidoc' 'xmlto')
source=(http://download.logilab.org/pub/$pkgname/$pkgname-$pkgver.tar.gz)
sha256sums=('49f009d3b04f5e0aade7bf9bb3a70345e688467a84a78d202d24fd98781cac5b')

build() {
  cd "$srcdir/$pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$srcdir/$pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir"/ --optimize=1

  # fix man page placement
  install -d "$pkgdir"/usr/share
  mv "$pkgdir"/usr/man "$pkgdir"/usr/share/man

  # fix FS#59623
  rm "$pkgdir"/usr/lib/python2.7/site-packages/hgext3rd/__init__.*
}