summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Gläßle2014-11-30 23:54:08 +0100
committerThomas Gläßle2014-11-30 23:54:08 +0100
commit1f510c92360dea1821fc5d5166a8e747b46fc592 (patch)
tree6818a1fe88cd7afba025f5d0bee8ea9a34c52853
downloadaur-1f510c92360dea1821fc5d5166a8e747b46fc592.tar.gz
Add initial version from AUR package madx-svn
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD62
2 files changed, 80 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e6c62148d1c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = madx-svn
+ pkgdesc = Accelerator Optics simulation code, svn trunk version
+ pkgver = 4727
+ pkgrel = 1
+ url = http://cern.ch/mad
+ arch = x86_64
+ license = custom
+ makedepends = subversion
+ makedepends = cmake
+ depends = gcc-libs
+ depends = libx11
+ provides = madx
+ conflicts = madx-dev
+ source = madX::svn+http://svnweb.cern.ch/guest/madx/trunk/madX
+ md5sums = SKIP
+
+pkgname = madx-svn
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d0e250b3c76
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,62 @@
+# Maintainer: Yngve Inntjore Levinsen <yngveTODlevinsenTAcernTODch>
+
+pkgname=madx-svn
+pkgver=4727
+pkgrel=1
+pkgdesc="Accelerator Optics simulation code, svn trunk version"
+url="http://cern.ch/mad"
+license=("custom")
+depends=('gcc-libs' 'libx11')
+conflicts=('madx-dev')
+provides=('madx')
+makedepends=('subversion' 'cmake')
+arch=('x86_64')
+
+source=('madX::svn+http://svnweb.cern.ch/guest/madx/trunk/madX')
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$SRCDEST/madX" && svnversion
+}
+
+prepare() {
+ cd madX
+
+ msg "Patching.."
+ # when patch level is 00 we want this:
+ #patch -p0 -i ../../madx_install_header.patch
+
+ msg "Configuring.."
+ # Note, BINARY_POSTFIX forced to not conflict with package 'madx'
+ 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 \
+ .
+
+}
+build() {
+ cd madX
+
+ msg "Starting make..."
+
+ make
+}
+
+check() {
+ cd madX
+ ctest -E LONG
+}
+
+package() {
+ pwd
+ cd madX
+ make DESTDIR=${pkgdir} install
+
+ cd ${srcdir}/${_svnmod}/madX
+ install -D -m644 License.txt ${pkgdir}/usr/share/licenses/${pkgname}/license.txt
+}