# Maintainer: Roosted7 # Maintainer: liamtimms pkgname=dcm2niix pkgver=1.0.20230411 pkgrel=1 pkgdesc="A tool for converting images from the complicated formats used by scanner manufacturers (DICOM, PAR/REC) to the simple NIfTI format" arch=(x86_64) url="https://www.nitrc.org/projects/dcm2nii/" license=('MIT' 'public domain') depends=('zlib') makedepends=('cmake' 'yaml-cpp' 'python-sphinx' 'git') optdepends=('pigz') install= changelog= source=("$pkgname-$pkgver.tar.gz::https://github.com/rordenlab/dcm2niix/archive/v${pkgver}.tar.gz") sha512sums=('fe4b5a564c6bcc7cdd0377a560e06ac5de4a1181685964b8904c86616341c837de760ea34dfbfc2d949e8b794465a4f1ff0cf81d8b859e160b36bc621f3dabbd') build() { cd "$srcdir/$pkgname-$pkgver" mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=/usr -DBATCH_VERSION=ON -DUSE_SYSTEM_ZLIB=ON -DBUILD_DOCS=ON .. make } package() { cd "$srcdir/$pkgname-$pkgver" cd build make DESTDIR="$pkgdir" install }