blob: 5c736cafcccda027987f44949cdc31d6ff41c602 (
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
30
31
32
33
34
35
36
37
38
39
40
|
# Maintainer: Butui Hu <hot123tea123@gmail.com>
pkgname=3dslicer-bin
_pkgname=3dslicer
_name=Slicer
pkgver=5.6.2
pkgrel=1
pkgdesc='A free, open source and multi-platform software package widely used for medical, biomedical, and related imaging research'
arch=('x86_64')
url='https://www.slicer.org'
license=('BSD-3-Clause')
depends=('dbus' 'glib2')
makedepends=('gendesk')
provides=('3dslicer')
conflicts=('3dslicer')
options=(!strip !emptydirs)
source=(
"${_name}-${pkgver}.tar.gz::http://download.slicer.org/download?os=linux&stability=release"
"${_pkgname}.svg::https://www.slicer.org/assets/img/3D-Slicer-Mark.svg"
)
sha512sums=('45bef9c4e46dabcc8e9917a891a7c4a5e447458e920005e70368a1d18028edfdabdf69489b30cdea83d63cf31047d7c1bbf0758c980dfe33e84f4c23f1f767a8'
'3422d244f819a7ec4c475d3d8a90c79fcb73738920c0830b100c6342ca24d5be607ba60ee3d91892402036a0adf31d5ab7c8fc83f451121a7b537f7de5306014')
prepare() {
echo "Creating desktop file"
gendesk -f -n --pkgname ${_pkgname} \
--pkgdesc "${pkgdesc}" \
--categories "Graphics;MedicalSoftware;Science;" \
--icon "${_pkgname}" \
--exec "Slicer"
}
package() {
install -d "${pkgdir}/opt" "${pkgdir}/usr/bin"
cp -a "${srcdir}/${_name}-${pkgver}-linux-amd64" "${pkgdir}/opt/${_pkgname}"
ln -s /opt/${_pkgname}/Slicer "${pkgdir}/usr/bin/Slicer"
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:
|