blob: 91342bd2c97704b330cce8c5eaceb81708044163 (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
# Maintainer: acxz <akashpatel2008 at yahoo dot com>
# Contributor: Max Devaine <max@devaine.cz>
pkgname=openvsp-git
pkgver=r5595.45e46ea8
pkgrel=1
pkgdesc='OpenVSP allows the user to create a 3D model of an aircraft defined by
common engineering parameters.'
arch=('i686' 'x86_64')
url='http://www.openvsp.org'
license=('NASA OPEN SOURCE AGREEMENT VERSION 1.3')
depends=('cblas'
'cminpack'
'code-eli'
'cpptest'
'eigen'
'fltk'
'freeglut'
'gcc'
'glew'
'glm'
'libxml2'
'stepcode')
optdepends=('doxygen: generate documentation'
'graphviz: generate documentation'
'python: python API module'
'swig: build interface to APIs')
makedepends=('cmake' 'unzip' 'git')
provides=('openvsp')
conflicts=('openvsp')
_name=OpenVSP
source=("git+https://github.com/OpenVSP/OpenVSP.git"
"format.patch"::"https://patch-diff.githubusercontent.com/raw/OpenVSP/OpenVSP/pull/221.patch")
sha256sums=('SKIP'
'SKIP')
pkgver() {
cd "${_name}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "${srcdir}/${_name}"
patch --strip=1 < "${srcdir}/format.patch"
}
build() {
mkdir -p "${srcdir}/build"
mkdir -p "${srcdir}/buildlibs"
cd "${srcdir}/buildlibs"
cmake ../${_name}/Libraries \
-DCMAKE_PREFIX_PATH='/usr' \
-DVSP_USE_SYSTEM_CPPTEST=true \
-DVSP_USE_SYSTEM_LIBXML2=true \
-DVSP_USE_SYSTEM_EIGEN=true \
-DVSP_USE_SYSTEM_CODEELI=false \
-DVSP_USE_SYSTEM_FLTK=true \
-DVSP_USE_SYSTEM_GLM=true \
-DVSP_USE_SYSTEM_GLEW=true \
-DVSP_USE_SYSTEM_CMINPACK=true \
-DVSP_USE_SYSTEM_LIBIGES=false \
-DVSP_USE_SYSTEM_STEPCODE=false \
-DVSP_USE_SYSTEM_EXPRPARSE=false \
-DVSP_USE_SYSTEM_TRIANGLE=false
make
cd "${srcdir}/build"
cmake ../${_name}/src \
-DVSP_LIBRARY_PATH="${srcdir}/buildlibs"
make
make package
}
package() {
cd ${srcdir}/build
unzip -o "OpenVSP-*-Linux.zip"
re='OpenVSP-*'
for dir in ${srcdir}/build/*; do
[[ $dir =~ $re ]] && { cd "$dir" && break; }
done
msg $dir
# binary
mkdir -p ${pkgdir}/usr/bin
cp vsp vspaero vspscript vspslicer vspviewer ${pkgdir}/usr/bin/
# misc
mkdir -p ${pkgdir}/usr/share/openvsp
cp README.md ${pkgdir}/usr/share/openvsp
cp LICENSE ${pkgdir}/usr/share/openvsp
cp -r CustomScripts ${pkgdir}/usr/share/openvsp
cp -r airfoil ${pkgdir}/usr/share/openvsp
cp -r matlab ${pkgdir}/usr/share/openvsp
cp -r scripts ${pkgdir}/usr/share/openvsp
cp -r textures ${pkgdir}/usr/share/openvsp
cp -r vspaero_ex ${pkgdir}/usr/share/${pkgname}
}
|