summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c6fdcd1906b608447d94025e0a78a36788930db1 (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
30
31
32
33
# Maintainer: Eugene Dvoretsky <radioxoma at gmail com>

pkgname=heval-git
pkgver=v0.0.5.r7.g0aa8c1b
pkgrel=1
pkgdesc="Medical calculator for intensive care unit (ICU)"
arch=('any')
url="https://github.com/radioxoma/heval"
license=('GPLv3')
groups=()
depends=('python' 'tk')
makedepends=('git' 'python-setuptools')
provides=("heval")
conflicts=("heval")
replaces=()
backup=()
options=()
install=
source=("$pkgname::git+https://github.com/radioxoma/heval")
sha256sums=('SKIP')
noextract=()

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

package() {
  cd "${srcdir}/${pkgname}"
  python setup.py install --root="$pkgdir/" --optimize=1
  install -Dm644 "$srcdir/$pkgname/heval.desktop" -t "$pkgdir/usr/share/applications"
  install -Dm644 "$srcdir/$pkgname/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname"
}