summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4de5b3f26a709e77bd23c8962a8bb0972913ca7a (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
# Maintainer: Thomas Roos (Roosted7) <mail [at] thomasroos [dot] nl>

# Thanks and credits to Chris (crmullins) for the stable version of this PKGBUILD, which formed the basis of this version

pkgname=3dslicer-nightly
pkgver=4.11.0_2018_11_18
pkgrel=1
pkgdesc="A free, open source software package for image analysis and scientific visualization."
url="http://slicer.org"
arch=('x86_64')
license=('BSD')
depends=('glu')
conflicts=('3dslicer')
provides=('3dslicer')
source=("Slicer-${pkgver//_/-}-linux-amd64.tar.gz::http://download.slicer.org/bitstream/906911"
        "3dslicer.png::https://www.slicer.org/slicerWiki/images/7/71/3DSlicerLogo-DesktopIcon-128x128.png"
        "3dslicer.desktop")
sha512sums=('d17fd512a9c92781b0f07bda9706d6afc0b456ca677e8c2c6a546371db9fd96ee1069a86a3daa687a1ac1ca191a083e58c54598a5dbc292bc791064c441f3175'
            'f3f8a3de8b774d2a968e293471f92d23af5f56a2f025f0ad49035802d94f35a6578c8a161e9f9ed3c2f63beb337bea6952f93e0651ecc6a34c20fd8171e4d087'
            '0a6c00eeb4bac3862c0cac63b20d05068deb2f46540ba5f73bad9f74697d62022b952641562762049fb0473eed9cd816e39388c440fbdef03518609825834194')

package() {
  install -d "$pkgdir"/opt/3dslicer "$pkgdir"/usr/bin
  mv "$srcdir/Slicer-${pkgver//_/-}-linux-amd64/"* "$pkgdir/opt/3dslicer"
  ln -s /opt/3dslicer/Slicer "$pkgdir/usr/bin"
  install -Dm644 "${srcdir}/3dslicer.desktop" "${pkgdir}/usr/share/applications/3dslicer.desktop"
  # https://www.slicer.org/slicerWiki/index.php/Slicer3:Slicer3Brand
  install -Dm644 "${srcdir}/3dslicer.png" "${pkgdir}/usr/share/pixmaps/3dslicer.png"
}