summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c2ed9ee823f6c0823eeda25b675f6a4f007b55ed (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
# Maintainer: Groctel <aur@taxorubio.com>

_name=isosurfaces

pkgname=python-isosurfaces
pkgver=0.1.0
pkgrel=1
pkgdesc="Construct isolines/isosurfaces of a 2D/3D scalar field defined by a function."

arch=('any')
# license=('MIT') Missing in v0.1.0
url="https://github.com/jared-hughes/isosurfaces"

source=("$url/archive/refs/tags/v$pkgver.tar.gz")
sha512sums=('0331d626dae0f1fd71ce9d9a559aa27d223ebf58c04564dd98b747cb81e6ee259696495c6deb7c6b47cd812647b505c3101486ee704bd9b69656396a6aac23a5')

depends=(
	'python'
	'python-numpy'
)
makedepends=('python-setuptools')

build ()
{
	cd "$srcdir/$_name-$pkgver"
	python setup.py build
}

package ()
{
	cd "$srcdir/$_name-$pkgver"
	python setup.py install --prefix=/usr --root="$pkgdir/" --optimize=1 --skip-build
	# install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$_name/LICENSE"
}