blob: acd348319daf8ad6b016738453c3f8a78e0ca48f (
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
41
42
43
44
45
46
|
# Maintainer: Tobias Bachmann <tobachmann@gmx.de>
pkgname=connectome-workbench
pkgver=2.0.0
pkgrel=1
pkgdesc="Connectome Workbench is an open source, freely available visualization and discovery tool used to map neuroimaging data, especially data generated by the Human Connectome Project."
arch=('x86_64')
url="http://humanconnectome.org/software/connectome-workbench"
license=('GPL')
depends=('qt5-base')
makedepends=('cmake')
source=("https://github.com/Washington-University/workbench/archive/v$pkgver.tar.gz"
"$pkgname.desktop"
"001-include_cstdint_in_libCZI_exceptions.h.patch")
sha256sums=('2d5a2603a1acb4fabc2b66fab3a8257f05ccd1705cf7f39681be5ff86169dfcf'
'9e002a2bc4e8354a0514e6e50c7ae388db9f243341385a7aaa8870954acbad96'
'1998a2fba2f5cad74b889c7d2bcab31e9c3c75707b95a7d6ddd29f9c6ddddcb8')
prepare() {
cd "workbench-$pkgver"
patch -p1 < "${srcdir}"/001-include_cstdint_in_libCZI_exceptions.h.patch
}
build() {
mkdir build
cd build
cmake -D CMAKE_INSTALL_PREFIX=/usr -D CMAKE_BUILD_TYPE=Release -D WORKBENCH_MESA_DIR=/usr -D WORKBENCH_USE_QT5=TRUE ../workbench-$pkgver/src
make -j $(nproc)
}
check() {
cd build
ctest
}
package() {
cd build
make DESTDIR="$pkgdir/" install
mkdir -p $pkgdir/usr/share/$pkgname/icons
install ../workbench-$pkgver/icons/linux/workbench_128x128x32.png $pkgdir/usr/share/$pkgname/icons/workbench_128x128x32.png
mkdir -p $pkgdir/usr/share/applications
install ../../$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
}
post_install() {
update-desktop-database
}
|