summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ad2d2235dcdf07afe10563784f1647e35e65a180 (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
# This is based on https://aur.archlinux.org/packages/pyrepl/, and modified
# to use the Mercurial repository, since there has not been a release for a
# long time.
pkgname=python-pyrepl-git
_realpkg=pyrepl
pkgver=0.9.0.16.g9df1fcb
pkgrel=1
pkgdesc="A Python library for building flexible command line interfaces"
url="https://github.com/blueyed/pyrepl"
arch=("any")
license=('MIT')
depends=('python')
conflicts=('python-pyrepl' 'python-pyrepl-hg')
provides=('python-pyrepl' 'python-pyrepl-hg')
source=("git+https://github.com/blueyed/pyrepl")
md5sums=('SKIP')
makedepends=('git' 'python')

pkgver() {
  cd "$_realpkg"
  git describe --tags | sed 's/^v//;s/-/./g'
}

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

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