blob: 363cc31b9ff1b6a18857d26e58465956e9858c22 (
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
|
# Maintainer: mickele
pkgname=opensees
pkgver=2.4.5
pkgrel=1
pkgdesc="OpenSees, a software framework for developing applications to simulate the performance of structural and geotechnical systems subjected to earthquakes"
arch=("i686" "x86_64")
url="http://opensees.berkeley.edu/"
depends=('tk>=8.6' 'openssl' 'libpng' 'mesa' 'lapack')
makedepends=('svn')
options=('')
license=("custom")
# This release is available only through svn
# http://opensees.berkeley.edu/OpenSees/changeLog.php
# source=("http://opensees.berkeley.edu/OpenSees/code/OpenSees${pkgver}.tar.gz" "Makefile.def")
source=("Makefile.def")
_svntrunk="svn://opensees.berkeley.edu/usr/local/svn/OpenSees/trunk"
_svnrel="5855"
_svnmod="OpenSees"
_installdir="/usr"
prepare() {
cd "${srcdir}"
msg "Starting SVN checkout..."
if [ -d ${_svnmod}/.svn ]; then
(cd ${_svnmod} && svn up -r ${_svnrel})
else
svn co ${_svntrunk} --config-dir ./ -r ${_svnrel} ${_svnmod}
fi
msg "SVN checkout done or server timeout"
cd "${srcdir}/${_svnmod}"
msg "Configuring..."
cp "${srcdir}/Makefile.def" ./ || return 1
sed -e "s|\$(INSTALLDIR)|${srcdir}|" \
-e "s|\$(SRCDIR)|${srcdir}|" \
-i Makefile.def
msg "Patching..."
# Missing header
# error: ‘Z_BEST_COMPRESSION’ was not declared in this scope
sed -e "s|#include <png.h>|#include <png.h>\n#include <zlib.h>|" \
-i SRC/renderer/OpenGlDevice.cpp
}
build() {
cd "${srcdir}/${_svnmod}"
msg "Building..."
mkdir -p "${srcdir}/lib"
mkdir -p "${srcdir}/bin"
make
}
package(){
msg "Istalling binary..."
install -d -m755 "${pkgdir}${_installdir}/bin"
install "${srcdir}/bin/OpenSees" "${pkgdir}${_installdir}/bin"
msg "Istalling licence..."
install -D -m644 "${srcdir}/OpenSees/COPYRIGHT" \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
md5sums=('51bd92d2ef7acf6777c4ad48c8fa7cb3')
|