summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD10
1 files changed, 6 insertions, 4 deletions
diff --git a/PKGBUILD b/PKGBUILD
index abf44e3f6f4..6a93181566c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=madx-dev
pkgver=5.02.13
-pkgrel=2
+pkgrel=3
pkgdesc="Accelerator Optics simulation code, latest development release"
url="http://cern.ch/mad"
license=("custom")
@@ -16,14 +16,16 @@ arch=('x86_64')
tarball=madx-src.tgz
extract=madx-${pkgver}
-source=("http://madx.web.cern.ch/madx/releases/${pkgver}/${tarball}" madx_vim.diff)
+source=("http://madx.web.cern.ch/madx/releases/${pkgver}/${tarball}" madx_vim.diff pmass.diff)
md5sums=('11307450b9a25a9d75c7bca42ae18c2c'
- 'befa90472e7b5725406c1dab5811102d')
+ 'befa90472e7b5725406c1dab5811102d'
+ '99a1f46963d8db5d933e2ac941a1fdcf')
prepare() {
cd ${srcdir}/${extract}
find . -name '._*' -print0 | xargs -0 -r rm
patch -p0 < ${srcdir}/madx_vim.diff
+ patch -p0 < ${srcdir}/pmass.diff
mkdir -p ${srcdir}/build
cd ${srcdir}/build
@@ -35,7 +37,7 @@ prepare() {
-DMADX_ONLINE=OFF \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_INSTALL_PREFIX=/usr \
- -DBINARY_POSTFIX=_dev \
+ -DBINARY_POSTFIX= \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_RPATH='$ORIGIN' \
${srcdir}/${extract}