summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e8e5897a154ea17d0d304646c142619206f474df (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.39.gf1e5513
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/pypy/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: