diff options
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 25 |
2 files changed, 16 insertions, 13 deletions
@@ -1,10 +1,10 @@ pkgbase = gdcm pkgdesc = C++ library for DICOM medical files pkgver = 3.0.24 - pkgrel = 1 + pkgrel = 3 url = https://github.com/malaterre/GDCM arch = x86_64 - license = BSD + license = BSD-3-Clause makedepends = cmake makedepends = python makedepends = swig @@ -5,11 +5,11 @@ pkgname=gdcm pkgver=3.0.24 -pkgrel=1 +pkgrel=3 pkgdesc="C++ library for DICOM medical files" arch=(x86_64) url="https://github.com/malaterre/GDCM" -license=(BSD) +license=(BSD-3-Clause) depends=(glibc gcc-libs openjpeg2) makedepends=(cmake python swig) optdepends=('python: python bindings') @@ -21,18 +21,21 @@ build() { pysitepackages=$(python -c 'import sysconfig; print(sysconfig.get_paths()["purelib"])') echo $pysitepackages + local _flags=( + -DGDCM_BUILD_APPLICATIONS:BOOL=ON + -DGDCM_BUILD_SHARED_LIBS:BOOL=ON + -DGDCM_BUILD_TESTING:BOOL=OFF + -DGDCM_BUILD_DOCBOOK_MANPAGES:BOOL=OFF + -DGDCM_USE_SYSTEM_OPENJPEG:BOOL=ON + -DGDCM_USE_VTK:BOOL=OFF + -DGDCM_WRAP_PYTHON:BOOL=ON + -DGDCM_INSTALL_PYTHONMODULE_DIR:STRING="$pysitepackages" + ) + cmake -B build -S "GDCM-${pkgver}" -Wno-dev \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ - -DGDCM_BUILD_APPLICATIONS:BOOL=ON \ - -DGDCM_BUILD_SHARED_LIBS:BOOL=ON \ - -DGDCM_BUILD_TESTING:BOOL=OFF \ - -DCMAKE_BUILD_TYPE:STRING=Release \ - -DGDCM_BUILD_DOCBOOK_MANPAGES:BOOL=OFF \ - -DGDCM_USE_SYSTEM_OPENJPEG:BOOL=ON \ - -DGDCM_USE_VTK:BOOL=OFF \ - -DGDCM_WRAP_PYTHON:BOOL=ON \ - -DGDCM_INSTALL_PYTHONMODULE_DIR:STRING="$pysitepackages" + "${_flags[@]}" cmake --build build } |