blob: 0eda1e0e7ef68c388c4bc33b4302362e3de9086d (
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
|
# Maintainer: Thomas Gläßle <t_glaessleATgmxDOTnet>
pkgname=madx-dev
pkgver=5.02.11
pkgrel=1
pkgdesc="Accelerator Optics simulation code, latest development release"
url="http://cern.ch/mad"
license=("custom")
depends=('gcc-libs' 'libx11' 'lapack')
conflicts=('madx-svn')
provides=('madx')
makedepends=('cmake')
arch=('x86_64')
tarball=madx-src.tgz
extract=madx-${pkgver}
source=("http://madx.web.cern.ch/madx/releases/${pkgver}/${tarball}")
md5sums=('5b5b71a7a296978db1ea71f4399a9ee5')
prepare() {
cd ${srcdir}/${extract}
find . -name '._*' -print0 | xargs -0 -r rm
mkdir -p ${srcdir}/build
cd ${srcdir}/build
cmake \
-DCMAKE_C_COMPILER=gcc \
-DCMAKE_Fortran_COMPILER=gfortran \
-DMADX_STATIC=OFF \
-DMADX_ONLINE=OFF \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBINARY_POSTFIX=_dev \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_RPATH='$ORIGIN' \
${srcdir}/${extract}
}
build() {
cd ${srcdir}/build
make
}
check() {
cd ${srcdir}/build
# ctest -E LONG
}
package() {
cd ${srcdir}/build
make DESTDIR=${pkgdir} install
# resolve conflict with 'ndiff' from package 'nmap':
mv ${pkgdir}/usr/bin/n{,um}diff
cd ${srcdir}/${extract}
install -D -m644 License.txt ${pkgdir}/usr/share/licenses/${pkgname}/license.txt
}
|