summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 570072a456163077e8c95570c2c3132ba692d063 (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
# Maintainer: Heiko Nickerl <dev at heiko-nickerl dot com>
pkgname="python-npyscreen-git"
pkgver=r480.d286599
pkgrel=2
pkgdesc="A python widget library and application framework"
arch=('any')
url="https://github.com/npcole/npyscreen"
license=('BSD')
conflicts=('python-npyscreen')
provides=('python-npyscreen')
makedepends=('git' 'python-setuptools' )
depends=('python' )
source=('git+https://github.com/npcole/npyscreen.git')
sha256sums=('SKIP')

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

package() {
   cd "$srcdir/npyscreen"
   msg "$srcdir/npyscreen/LICENSE"
   install -Dm644 LICENCE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
   python setup.py install --root="$pkgdir/" --optimize=1
}