summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 908e901dfb14202a2ab480fcc7b455648c1d986c (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
# Contributor: Grey Christoforo <first name at last name dot net>
# Contributor: Rafael Silva <perigoso at riseup dot net>

pkgname='python-epics'
_name='pyepics'
pkgver=3.5.5
pkgrel=1
pkgdesc="Python interface to Epics Channel Access"
arch=('any')
url="http://pyepics.github.io/pyepics/"
license=('custom:Epics Open License')
depends=('python' 'python-numpy' 'epics-base')
makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools')
source=("https://github.com/pyepics/$_name/archive/refs/tags/$pkgver.tar.gz")
sha512sums=('SKIP')

build() {
  cd "$_name-$pkgver"

  # Workaround for python-setuptools-scm
  export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
  python -m build --wheel --no-isolation
}

package(){
  cd "$_name-$pkgver"

  python -m installer --destdir="$pkgdir" dist/*.whl
}