aboutsummarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0a952712685cd9b34f5d8ea4829525b1d643f2b9 (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
# Maintainer: Yngve Levinsen <first name dot last name at ess dot eu>
# Contributor: Grey Christoforo <first name at last name dot net>

pkgname=ess-epics
pkgver=2.0.3.r8.gb4369db
pkgrel=1
pkgdesc="Experimental Physics and Industrial Control System -- ESS flavour"
arch=('any')
url="http://www.aps.anl.gov/epics/"
provides=('epics')
conflicts=('epics')
license=('GPL')
makedepends=('rpcsvc-proto' 'tree' 'git' 'python-build' 'python-installer' 'python-wheel')
depends=('python-gitlab' 'python-yaml' 'python-gitpython' 'python-pathlib' 'python-argparse' 'python-pytest')
source=("git+https://gitlab.esss.lu.se/e3/e3.git")
md5sums=('SKIP')

MAKEFLAGS="-j1" # mutithread building breaks this

pkgver() {
    cd e3
    git describe --long --tags | sed 's/^v//;s/-/.r/;s/-/./'
    #printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd e3
  #bash e3.bash base
  python -m build --wheel --no-isolation
}

package() {
  cd e3
  
  python -m installer --destdir="$pkgdir" dist/*.whl
}