blob: 89922c82ff48e0ff89d70cc71facdddc29eadcd2 (
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
47
48
|
# Maintainer: Chris <christopher.r.mullins g-mail>
pkgname=commontk-git
pkgrel=1
pkgdesc='A set of common support code for medical imaging, surgical navigation, and related purposes.'
pkgver=r5007.0f14f50
arch=('i686' 'x86_64')
url='http://commontk.org'
depends=('qt4' 'pythonqt')
makedepends=('git' 'cmake')
optdepends=('python2: For scripting support')
license=('Apache')
source=("git://github.com/commontk/CTK.git")
md5sums=("SKIP")
pkgver() {
cd "$srcdir"/CTK
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir"
rm -rf build
mkdir build
cd build
cmake \
-DCTK_SUPERBUILD:BOOL=OFF \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DBUILD_SHARED_LIBS:BOOL=ON \
-DCTK_LIB_Widgets:BOOL=ON \
-DCTK_ENABLE_Python_Wrapping:BOOL=ON \
-DPYTHON_INCLUDE_DIR:PATH=/usr/include/python2.7 \
-DPYTHON_LIBRARY:PATH=/usr/lib64/libpython2.7.so \
-DPYTHON_EXECUTABLE:PATH=/usr/bin/python2.7 \
-DPYTHONQT_INCLUDE_DIR:PATH=/usr/include/PythonQt \
-DPYTHONQT_INSTALL_DIR:PATH=/usr \
-DPYTHONQT_LIBRARY_RELEASE:FILEPATH=/usr/lib64/libPythonQt.so \
../CTK
make
}
package() {
cd "$srcdir"/build
make DESTDIR="${pkgdir}" install
}
|