1 # Maintainer: Yngve Inntjore Levinsen <yngve.inntjore.levinsen@cern.ch>
6 pkgdesc="Accelerator Optics simulation code, svn trunk version"
7 url="http://cern.ch/mad"
9 depends=('gcc-libs' 'libx11')
10 conflicts=('madx-dev')
12 makedepends=('subversion' 'cmake' 'python2' 'cython')
13 arch=('i686' 'x86_64')
15 _svntrunk=http://svnweb.cern.ch/guest/madx/trunk/
19 if [ -d $_svnmod/.svn ]; then
20 (cd $_svnmod && svn up -r $pkgver)
22 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
25 msg "SVN checkout done or server timeout"
26 msg "Starting make..."
29 [ -d "build" ] && rm -rf build
34 cmake -DCMAKE_C_COMPILER=gcc \
35 -DCMAKE_Fortran_COMPILER=gfortran \
38 -DBUILD_SHARED_LIBS=ON \
39 -DCMAKE_INSTALL_PREFIX=/usr \
40 -DCMAKE_BUILD_TYPE=Release \
47 cd ${srcdir}/${_svnmod}/build
48 make DESTDIR=${pkgdir} install
50 cd ${srcdir}/${_svnmod}/madX
51 install -D -m644 License.txt ${pkgdir}/usr/share/licenses/${pkgname}/license.txt