summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorButui Hu2021-02-18 09:21:40 +0800
committerButui Hu2021-02-18 09:21:40 +0800
commit5df4a602103874f8be400fab7734a6c8cd608661 (patch)
tree36e60287127bb5ddd8215c51b23b01cde1fb4184
parent1bae94aa201dc75da7110aad0e17231a53e06bf8 (diff)
downloadaur-5df4a602103874f8be400fab7734a6c8cd608661.tar.gz
upgrade to 4.11.20200930
-rw-r--r--.SRCINFO42
-rw-r--r--PKGBUILD101
2 files changed, 110 insertions, 33 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 0168f39b7e0..754befc3f84 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,37 @@
pkgbase = 3dslicer
- pkgdesc = A free, open source software package for image analysis and scientific visualization.
- pkgver = 4.10.2
- pkgrel = 1
- url = http://slicer.org
+ pkgdesc = A multi-platform, free and open source software package for visualization and medical image computing
+ pkgver = 4.11.20200930
+ pkgrel = 7
+ url = https://www.slicer.org/
arch = x86_64
license = BSD
- depends = glu
- source = Slicer-4.10.2-linux-amd64.tar.gz::https://download.slicer.org/bitstream/1023242
- source = 3dslicer.png::https://www.slicer.org/slicerWiki/images/7/71/3DSlicerLogo-DesktopIcon-128x128.png
- source = 3dslicer.desktop
- sha512sums = 36f1b175f987e7d1e288f08d55c6942e494f1234bfdfb4ffae8517bb1711418c6ae3d5efd3f57dc31a7f65c451c8324d8c09d4de697b6b81d0a85ec48299c686
- sha512sums = f3f8a3de8b774d2a968e293471f92d23af5f56a2f025f0ad49035802d94f35a6578c8a161e9f9ed3c2f63beb337bea6952f93e0651ecc6a34c20fd8171e4d087
- sha512sums = 0a6c00eeb4bac3862c0cac63b20d05068deb2f46540ba5f73bad9f74697d62022b952641562762049fb0473eed9cd816e39388c440fbdef03518609825834194
+ makedepends = clang
+ makedepends = cmake
+ makedepends = gendesk
+ makedepends = git
+ makedepends = subversion
+ depends = bzip2
+ depends = curl
+ depends = dcmtk
+ depends = libxt
+ depends = openssl
+ depends = qt5-base
+ depends = qt5-multimedia
+ depends = qt5-script
+ depends = qt5-svg
+ depends = qt5-tools
+ depends = qt5-webengine
+ depends = qt5-x11extras
+ depends = qt5-xmlpatterns
+ depends = rapidjson
+ depends = sqlite
+ depends = teem
+ options = !emptydirs
+ options = !strip
+ source = 3dslicer-4.11.20200930::git+https://github.com/Slicer/Slicer.git#tag=v4.11.20200930
+ source = 3dslicer.svg::https://github.com/Slicer/Slicer/raw/v4.11/Resources/3DSlicerLogo-app-icon.svg
+ sha512sums = SKIP
+ sha512sums = c23104efcbec3d49b5c26ad5514ed74316423db4aa9e6c7894f02f7ddbe509b577de358dfdd2f7c492963f312b7c146f03d5e41a89ab1298811894dc18746225
pkgname = 3dslicer
diff --git a/PKGBUILD b/PKGBUILD
index dbda5e219bb..cd2a2a685a5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,29 +1,86 @@
-# Maintainer: Thomas Roos <mail [at] thomasroos.nl>
-# Contributor: Chris <christopher.r.mullins g-mail>
-# Contributor: Tomáš Mládek <tmladek [on] inventati [bop] org>
-# Contributor: Eugene Dvoretsky <radioxoma at g-mail>
-# Contributor: m-pilia
+# Maintainer: Butui Hu <hot123tea123@gmail.com>
pkgname=3dslicer
-pkgver=4.10.2
-pkgrel=1
-pkgdesc="A free, open source software package for image analysis and scientific visualization."
-url="http://slicer.org"
+pkgver=4.11.20200930
+pkgrel=7
+pkgdesc="A multi-platform, free and open source software package for visualization and medical image computing"
arch=('x86_64')
+url="https://www.slicer.org/"
license=('BSD')
-depends=('glu')
-source=("Slicer-$pkgver-linux-amd64.tar.gz::https://download.slicer.org/bitstream/1023242"
- "3dslicer.png::https://www.slicer.org/slicerWiki/images/7/71/3DSlicerLogo-DesktopIcon-128x128.png"
- "3dslicer.desktop")
-sha512sums=('36f1b175f987e7d1e288f08d55c6942e494f1234bfdfb4ffae8517bb1711418c6ae3d5efd3f57dc31a7f65c451c8324d8c09d4de697b6b81d0a85ec48299c686'
- 'f3f8a3de8b774d2a968e293471f92d23af5f56a2f025f0ad49035802d94f35a6578c8a161e9f9ed3c2f63beb337bea6952f93e0651ecc6a34c20fd8171e4d087'
- '0a6c00eeb4bac3862c0cac63b20d05068deb2f46540ba5f73bad9f74697d62022b952641562762049fb0473eed9cd816e39388c440fbdef03518609825834194')
+depends=(
+ bzip2
+ curl
+ dcmtk
+ libxt
+ openssl
+ qt5-base
+ qt5-multimedia
+ qt5-script
+ qt5-svg
+ qt5-tools
+ qt5-webengine
+ qt5-x11extras
+ qt5-xmlpatterns
+ rapidjson
+ sqlite
+ teem
+)
+makedepends=(
+ clang
+ cmake
+ gendesk
+ git
+ subversion
+)
+options=(!emptydirs !strip)
+source=("${pkgname}-${pkgver}::git+https://github.com/Slicer/Slicer.git#tag=v${pkgver}"
+ "${pkgname}.svg::https://github.com/Slicer/Slicer/raw/v4.11/Resources/3DSlicerLogo-app-icon.svg")
+sha512sums=('SKIP'
+ 'c23104efcbec3d49b5c26ad5514ed74316423db4aa9e6c7894f02f7ddbe509b577de358dfdd2f7c492963f312b7c146f03d5e41a89ab1298811894dc18746225')
+
+prepare() {
+ # find sqlite with cmake's FindSQLite3
+ sed -i 's/find_package(${proj} REQUIRED)/find_package(SQLite3 REQUIRED)/' "${srcdir}/${pkgname}-${pkgver}/SuperBuild/External_sqlite.cmake"
+
+ echo "Creating desktop file"
+ gendesk -f -n --pkgname ${pkgname} \
+ --pkgdesc "${pkgdesc}" \
+ --categories "Graphics;MedicalSoftware;Science;" \
+ --icon "${pkgname}" \
+ --exec "Slicer"
+}
+
+build() {
+ cmake -B build -S "${srcdir}/${pkgname}-${pkgver}" \
+ -DBUILD_TESTING=OFF \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_C_COMPILER=clang \
+ -DCMAKE_CXX_COMPILER=clang++ \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DSlicer_BUILD_DOCUMENTATION=OFF \
+ -DSlicer_BUILD_I18N_SUPPORT=ON \
+ -DSlicer_USE_SimpleITK_SHARED=ON \
+ -DSlicer_USE_SYSTEM_bzip2=ON \
+ -DSlicer_USE_SYSTEM_curl=ON \
+ -DSlicer_USE_SYSTEM_DCMTK=ON \
+ -DSlicer_USE_SYSTEM_LZMA=ON \
+ -DSlicer_USE_SYSTEM_OpenSSL=ON \
+ -DSlicer_USE_SYSTEM_QT=ON \
+ -DSlicer_USE_SYSTEM_RapidJSON=ON \
+ -DSlicer_USE_SYSTEM_sqlite=ON \
+ -DSlicer_USE_SYSTEM_teem=ON \
+ -DSlicer_USE_SYSTEM_VTK=OFF \
+ -DSlicer_USE_SYSTEM_zlib=ON
+ make -C "build"
+}
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"
+ cd "${srcdir}/build/Slicer-build"
+ make package
+ install -d "${pkgdir}/opt/${pkgname}" "${pkgdir}/usr/bin"
+ tar xvf "${srcdir}/build/Slicer-build/"*.tar.gz -C "${pkgdir}/opt/${pkgname}" --strip-components 1
+ ln -s /opt/${pkgname}/Slicer "${pkgdir}/usr/bin"
+ install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
+ install -Dm644 "${srcdir}/${pkgname}.svg" "${pkgdir}/usr/share/pixmaps/${pkgname}.svg"
}
+# vim:set ts=2 sw=2 et: