blob: b5cbfa602a36d0feced77461d4ced336e5090357 (
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
34
35
36
37
38
39
40
41
42
43
|
# Maintainer: Oliver Papst <opapst at ikp dot tu-darmstadt dot de>
pkgname=hdtv-git
_pkgname=hdtv
pkgver=r1251.c5f15af
pkgrel=1
pkgdesc="Nuclear spectrum analysis tool on top of the ROOT data analysis toolkit"
arch=('i686' 'x86_64')
url="https://github.com/janmayer/hdtv"
license=('GPL')
conflicts=('hdtv')
provides=('hdtv')
depends=('glibc'
'cern-vdt'
'libx11'
'python'
'root'
'python-matplotlib'
'python-prompt_toolkit'
'python-setuptools'
'python-scipy'
'python-traitlets'
'python-uncertainties')
makedepends=('git' 'python-docutils')
#checkdepends=('python-pytest')
options=(!emptydirs)
source=("git+${url}.git")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${_pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${srcdir}/${_pkgname}/doc/guide"
make || return 1
}
package() {
cd "${srcdir}/${_pkgname}"
python setup.py install --root="${pkgdir}/" --optimize=1
install -Dm 0644 license.md "${pkgdir}/usr/share/licenses/${pkgname}/license.md"
}
|