summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 77f047d1d2089c2ec7749c14e116f08df7ca64fa (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
# Maintainer kang <kang@insecure.ws>

pkgname=python-console-menu-git
_pkgname="console-menu"
pkgver=v0.6.0.r11.g93006cb
pkgrel=1
pkgdesc="A simple Python menu system for building terminal user interfaces."
arch=('any')
url="https://github.com/aegirhall/console-menu"
license=('MIT')
depends=('python' 'python-jose' 'python-requests')
makedepends=('git' 'python-setuptools')
source=('git://github.com/aegirhall/console-menu')
md5sums=('SKIP')

pkgver() {
  cd $_pkgname
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd $_pkgname
  python setup.py build
}

package() {
  cd $_pkgname
  python setup.py install --root=${pkgdir} --optimize=1
}