blob: 4a079c1ad92782186042ed3f52def35843d265ff (
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
44
45
46
47
48
49
|
# Maintainer: Luke Labrie-Cleary <luke.cleary@copenhagenatomics.com>
pkgname=python-endf
pkgver=0.1.9.r0.g5681381
pkgrel=1
pkgdesc="Python ENDF Parser"
arch=('x86_64')
url="https://github.com/paulromano/endf-python"
license=('MIT')
depends=(
python
pybind11
)
makedepends=(
git
python
python-build
python-installer
python-wheel
)
provides=("${pkgname%-pkgver}")
source=("$pkgname::git+https://github.com/paulromano/endf-python.git")
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$srcdir/$pkgname"
python \
-m build \
--wheel \
--no-isolation
}
package() {
cd "$srcdir/$pkgname"
python -m installer --destdir="$pkgdir" dist/*.whl
# make git repo available in opt
cd "$srcdir"
mkdir $pkgdir/opt
cp -r $pkgname $pkgdir/opt
}
|