updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / opensees / PKGBUILD
blobe3a35fabbcf926b3b24e61eeb8ca20238a4f228a
1 # Maintainer: mickele
2 pkgname=opensees
3 pkgver=2.3.2
4 pkgrel=1
5 pkgdesc="OpenSees, a software framework for developing applications to simulate the performance of structural and geotechnical systems subjected to earthquakes"
6 arch=("i686" "x86_64")
7 url="http://opensees.berkeley.edu/"
8 depends=('tk>=8.5' 'openssl' 'libpng' 'mesa' 'atlas-lapack')
9 makedepends=('svn')
10 options=('')
11 license=("custom")
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")
19 build() {
20   local _svntrunk="svn://opensees.berkeley.edu/usr/local/svn/OpenSees/trunk"
21   local _svnrel="4665"
22   local _svnmod="OpenSees"
23   local _installdir="/usr"
25   msg "Starting SVN checkout..."
26   cd ${srcdir}
27   if [ -d ${_svnmod}/.svn ]; then
28       (cd ${_svnmod} && svn up -r ${_svnrel})
29     else
30       svn co ${_svntrunk} --config-dir ./ -r ${_svnrel} ${_svnmod}
31   fi
32   msg "SVN checkout done or server timeout"
34   cd "${srcdir}/OpenSees" || return 1
36   msg "Configuring..."
37   cp "${srcdir}/Makefile.def" ./ || return 1
39   sed -e "s|\$(INSTALLDIR)|${pkgdir}${_installdir}|" \
40       -e "s|\$(SRCDIR)|${srcdir}|" \
41       -i Makefile.def
43   msg "Building..."
44   install -d -m 755 "${srcdir}/lib" || return 1
45   install -d -m 755 "${pkgdir}${_installdir}/bin" || return 1
46   make || return 1
49 package(){
50   msg "Istalling licence..."
51   install -D -m644 "${srcdir}/OpenSees/COPYRIGHT" \
52         "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" || return 1
54 md5sums=('bebc0b4da2e13798a21bb7fc9111a159')