summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3508a07b661e63b4f8874c48f54d7e6150b25fdc (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
# Maintainer: Liam Timms <timms5000@gmail.com>

pkgname=python-dcm2bids
_name=${pkgname/python-/}
pkgver=2.1.4
pkgrel=1
pkgdesc="Reorganising NIfTI files from dcm2niix into the Brain Imaging Data Structure"
arch=('any')
url="https://github.com/cbedetti/Dcm2Bids"
license=('GPL3')
depends=('dcm2niix')
makedepends=('python-setuptools')
options=(!emptydirs)
source=("${_name}-${pkgver}.tar.gz::https://github.com/cbedetti/Dcm2Bids/archive/${pkgver}.tar.gz")
sha256sums=('b702da2988734a6506310bf1a530d631b2e528df5373368e476f780acd7bc9ab')

build() {
  cd "$srcdir"/Dcm2Bids-$pkgver

  python setup.py build
}

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

  python setup.py install --root="$pkgdir"/ --optimize=1
}