5 pkgdesc="OpenSees, a software framework for developing applications to simulate the performance of structural and geotechnical systems subjected to earthquakes"
7 url="http://opensees.berkeley.edu/"
8 depends=('tk>=8.5' 'openssl' 'libpng' 'mesa' 'atlas-lapack')
12 install=(opensees.install)
14 # This release is available only through svn
15 # http://opensees.berkeley.edu/OpenSees/changeLog.php
16 # source=("http://opensees.berkeley.edu/OpenSees/code/OpenSees${pkgver}.tar.gz" "Makefile.def")
17 source=("Makefile.def")
20 local _svntrunk="svn://opensees.berkeley.edu/usr/local/svn/OpenSees/trunk"
22 local _svnmod="OpenSees"
23 local _installdir="/usr"
25 msg "Starting SVN checkout..."
27 if [ -d ${_svnmod}/.svn ]; then
28 (cd ${_svnmod} && svn up -r ${_svnrel})
30 svn co ${_svntrunk} --config-dir ./ -r ${_svnrel} ${_svnmod}
32 msg "SVN checkout done or server timeout"
34 cd "${srcdir}/OpenSees" || return 1
37 cp "${srcdir}/Makefile.def" ./ || return 1
39 sed -e "s|\$(INSTALLDIR)|${pkgdir}${_installdir}|" \
40 -e "s|\$(SRCDIR)|${srcdir}|" \
44 install -d -m 755 "${srcdir}/lib" || return 1
45 install -d -m 755 "${pkgdir}${_installdir}/bin" || return 1
50 msg "Istalling licence..."
51 install -D -m644 "${srcdir}/OpenSees/COPYRIGHT" \
52 "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" || return 1
54 md5sums=('bebc0b4da2e13798a21bb7fc9111a159')