summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 23146bd3e8b56f7a57901e6b83f511e3a129faef (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 of this PKBGUILD file: Martino Pilia <martino.pilia@gmail.com>
_name=itk
pkgname=python-itk
pkgver=5.0.1
pkgrel=1
pkgdesc="Open-source toolkit for multidimensional image analysis"
arch=('x86_64')
url='https://itk.org/'
license=('Apache')
depends=('python-numpy')
makedepends=(
	'cmake'
	'doxygen'
	'git'
	'python-scikit-build'
	'python-setuptools'
)
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('e1899170ba5d926033306ab7659169f882dd807c65a85dc0574fa775a3d643e9')


package() {

	# NOTE
	# Not all image types are wrapped by default.
	# If you need any type that is not included, you should build
	# ITK from sources using the insight-toolkit package, editing
	# the PKGBUILD to enable Python wrapping and adding to the CMake
	# confing any additional component you want to include.

	cd "$srcdir/$_name-$pkgver"
	python setup.py install --optimize=1 --root="$pkgdir"
}