summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBastian Löher2015-07-20 16:21:36 +0200
committerBastian Löher2015-09-29 11:06:21 +0200
commit0c707e76ddabfd9b81ce93f1819e3f4a7df9c9f8 (patch)
treeecb0a296f56084273d04a49168bc7a09ec675388
downloadaur-0c707e76ddabfd9b81ce93f1819e3f4a7df9c9f8.tar.gz
Initial commit moving to AUR4.
-rw-r--r--.SRCINFO27
-rw-r--r--PKGBUILD95
-rw-r--r--r3broot-svn.install16
3 files changed, 138 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..306bdb6360d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,27 @@
+pkgbase = r3broot-svn
+ pkgdesc = Analysis framework based on root for the R3B experiment provided by GSI/FAIR.
+ pkgver = trunk
+ pkgrel = 1
+ url = http://fairroot.gsi.de
+ install = r3broot-svn.install
+ arch = x86_64
+ license = unknown
+ makedepends = cmake
+ makedepends = clang
+ makedepends = bison
+ makedepends = flex
+ makedepends = gcc-fortran
+ makedepends = subversion
+ makedepends = curl
+ depends = fairsoft
+ depends = fairroot
+ provides = r3broot
+ options = !emptydirs
+ options = staticlibs
+ options = libtool
+ options = !strip
+ source = r3broot-svn::svn+https://subversion.gsi.de/fairroot/r3broot/trunk
+ md5sums = SKIP
+
+pkgname = r3broot-svn
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7e82ffbee29
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,95 @@
+# Maintainer: Bastian Löher <b.loeher@gsi.de>
+pkgname=r3broot-svn
+pkgver=trunk
+pkgrel=1
+pkgdesc="Analysis framework based on root for the R3B experiment provided by GSI/FAIR."
+arch=('x86_64')
+url="http://fairroot.gsi.de"
+license=('unknown')
+groups=()
+fairsoftver=jul15-1
+fairrootver=v-15.07
+makedepends=('cmake'
+ 'clang'
+ 'bison'
+ 'flex'
+ 'gcc-fortran'
+ 'subversion'
+ 'curl')
+depends=(
+ 'fairsoft'
+ 'fairroot'
+ )
+provides=('r3broot')
+replaces=()
+backup=()
+options=('!emptydirs' 'staticlibs' 'libtool' '!strip')
+install=r3broot-svn.install
+changelog=
+source=("${pkgname}::svn+https://subversion.gsi.de/fairroot/r3broot/trunk")
+noextract=()
+md5sums=('SKIP')
+
+# Do not compress the package for installation
+# PKGEXT='.pkg.tar'
+# Compress using lightweight gzip
+PKGEXT='.pkg.tar.gz'
+
+pkgver() {
+ cd "$pkgname"
+ local ver="$(svnversion)"
+ printf "r%s" "${ver//[[:alpha:]]}"
+}
+
+prepare() {
+ # Path to fairsoft installation
+ export SIMPATH=/opt/fairsoft/$fairsoftver
+
+ # Path to fairroot installation
+ export FAIRROOTPATH=/opt/fairroot/$fairrootver
+
+ # Execute cmake
+ cd ${srcdir}
+ [ -d build ] || mkdir build
+ cd build
+ cmake \
+ -DUSE_DIFFERENT_COMPILER=TRUE \
+ -DCMAKE_INSTALL_PREFIX="/opt/r3broot/svn" \
+ ../${pkgname}
+:
+}
+
+build() {
+ # Path to fairsoft installation
+ export SIMPATH=/opt/fairsoft/$fairsoftver
+ cd ${srcdir}/build
+ make -j$(nproc)
+}
+
+package() {
+ installdir=${pkgdir}/opt/r3broot/svn
+
+ cd ${srcdir}/build
+ make DESTDIR="${pkgdir}/" install
+ cd ${srcdir}/${pkgname}
+ # Install macros
+ cp -r macros ${installdir}
+ # Install geometry data
+ cp -r geometry ${installdir}
+ # Install field maps
+ cp -r field ${installdir}
+ # Install gconfig
+ cp -r gconfig ${installdir}
+ # Install input files
+ cp -r input ${installdir}
+ # Install config files
+ cd ${srcdir}/build
+ cp config* ${installdir}
+ cp check_system* ${installdir}
+ # Move left-overs as well
+ mv ${pkgdir}/${srcdir}/build/lib/* ${installdir}/lib
+ # Cleanup pkgdir
+ cd ${pkgdir}
+ echo "Cleaning out ${srcdir#/} from ${pkgdir}"
+ rm -r ${srcdir#/}
+}
diff --git a/r3broot-svn.install b/r3broot-svn.install
new file mode 100644
index 00000000000..3b730f2d83c
--- /dev/null
+++ b/r3broot-svn.install
@@ -0,0 +1,16 @@
+post_install() {
+ echo "Add the following line to your ~/.profile"
+ echo " source /opt/r3broot/svn/config.sh"
+}
+
+post_upgrade() {
+ :
+}
+
+pre_remove() {
+ :
+}
+
+post_remove() {
+ :
+}