summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 81a98b452aa8fa854fe7692aad7f00a7e63f2175 (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: Sven Karsten Greiner <sven@sammyshp.de>

pkgname=hpex-git
pkgver=1.0.0.r19.67c190f
pkgrel=1
pkgdesc='RPL HP calculator transfer tool with graphical and command line interfaces'
arch=('x86_64')
url='https://github.com/liamhays/hpex'
license=('GPL3')
depends=('ckermit' 'python' 'python-wxpython' 'python-xmodem' 'python-pypubsub' 'python-ptyprocess' 'python-pyserial')
makedepends=('git' 'python-setuptools')
provides=('hpex')
source=('git+https://github.com/liamhays/hpex.git')
md5sums=('SKIP')

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

build() {
  cd "$srcdir/${pkgname%-git}"
  python setup.py build
}

package() {
  cd "$srcdir/${pkgname%-git}"
  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}