summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2b2bb6c98cf3ce469aa69b2e7006bbb343189056 (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
# Contributor: Moritz Lipp <mail@mlq.me>
pkgname=pysheng-git
pkgver=r79.10c4555
pkgrel=1
pkgdesc="CLI and GUI program to download pages from Google Books as PNG images"
arch=('x86_64' 'i686')
url="https://github.com/tokland/pysheng"
license=('GPL-3.0-or-later')
depends=('python2')
makedepends=('git')
optdepends=('python2-reportlab: GUI'
	    'pygtk: GUI')
conflicts=('pysheng' 'pysheng-svn')
source=('pysheng::git+https://github.com/tokland/pysheng')
md5sums=('SKIP')
_gitname=pysheng

pkgver() {
  cd "$_gitname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd "$srcdir/$_gitname"
  python2 setup.py install --root="$pkgdir/" --optimize=1
}

# vim:set ts=2 sw=2 et: