summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 935e9b7a91404f3654fc36a88d4b796016bd50c2 (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
# Maintained: Hoel Kervadec <hoel@kervadec.bzh>

pkgname=python-medpy
_appname=medpy
pkgver=0.4.0
pkgrel=1
pkgdesc='Medical image processing in Python'
arch=('x86_64')
url="https://loli.github.io/medpy"
license=('GPL')
depends=('python' 'python-numpy' 'python-scipy')
optdepends=('python-simpleitk')
makedepends=('python-setuptools' 'boost')
source=("https://github.com/loli/medpy/archive/$pkgver.tar.gz")
sha256sums=('2a309ad7aaf80c1a46a56a1e3b8f19b981313cf2011bc901cfc3020c9ffa720d')

prepare() {
	cd $srcdir/$_appname-$pkgver
}

build() {
	cd $srcdir/$_appname-$pkgver

	python setup.py build
}


package() {
	cd $srcdir/$_appname-$pkgver
	python setup.py install --root="$pkgdir/"
	install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}