summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 607b37b3c357088b30da67fe509d5563f3ac8134 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer of this PKGBUILD file: Martino Pilia <martino.pilia@gmail.com>
_pkgname=pyelastix
pkgname=python-$_pkgname
pkgver=1.1
pkgrel=3
pkgdesc="Python wrapper for the Elastix nonrigid registration toolkit"
arch=('x86_64')
url="https://github.com/almarklein/pyelastix"
license=('MIT')
depends=('python-numpy' 'elastix')
makedepends=('python-setuptools')
source=("https://github.com/almarklein/pyelastix/archive/v${pkgver}.tar.gz")
sha512sums=('e3258111ece1ad67f9de8469200ee06a3d8db4d07b85a6ba0fa96c41ba6e37445313c5cce6bda6e96bb4e1fb0d6c60dc0a5d79e5e3ce76eb55f042550ad121da')

package() {
	cd "$srcdir/$_pkgname-$pkgver"

	# do not run Python subprocess through the shell
	sed -i '304s/True/False/' pyelastix.py

	install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
	python setup.py install --optimize=1 --root="$pkgdir"
}