Guest User

Untitled

a guest
Jul 1st, 2017
514
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Chris <christopher.r.mullins g-mail>
  2. # Contributor: Andrzej Giniewicz <gginiu@gmail.com>
  3.  
  4. pkgname=gdcm
  5. pkgver=2.8.0
  6. pkgrel=10
  7. pkgdesc='a C++ library for DICOM medical files'
  8. arch=('i686' 'x86_64')
  9. url='http://gdcm.sourceforge.net'
  10. license=('BSD')
  11. optdepends=('python2: python bindings'
  12. 'java-runtime: java bindings'
  13. 'vtk: vtk bindings'
  14. 'swig: generate python wrappers')
  15. makedepends=('cmake')
  16. source=("http://sourceforge.net/projects/gdcm/files/gdcm%202.x/GDCM%20$pkgver/gdcm-$pkgver.tar.gz")
  17. sha512sums=('fd365888690c054ff24171cf1ad777da2afc4130edef524f7d5b7dc5cc973efacc64177525662c501c31c4320fcc0eeacd11f711387e7f1ccea596b5e4aa4dda')
  18.  
  19. build() {
  20. cd "$srcdir"
  21. mkdir -p build && cd build
  22. cmake \
  23. -DCMAKE_INSTALL_PREFIX:FILEPATH=/usr \
  24. -DGDCM_BUILD_SHARED_LIBS:BOOL=ON \
  25. -DGDCM_BUILD_TESTING:BOOL=OFF \
  26. -DGDCM_USE_SYSTEM_OPENJPEG:BOOL=ON \
  27. -DCMAKE_BUILD_TYPE:STRING=Release \
  28. -DGDCM_BUILD_DOCBOOK_MANPAGES:BOOL=OFF \
  29. ../"$pkgname-$pkgver"
  30. make
  31. }
  32.  
  33. package() {
  34. cd "$srcdir"/"$pkgname-$pkgver"
  35. install -Dm644 Copyright.txt "$pkgdir"/usr/share/licenses/"$pkgname"/COPYING
  36.  
  37. cd "$srcdir"/build
  38. make DESTDIR="$pkgdir" install
  39. }
RAW Paste Data