diff options
author | L.G. Sarmiento | 2015-06-14 19:38:30 +0200 |
---|---|---|
committer | L.G. Sarmiento | 2015-06-14 19:38:30 +0200 |
commit | 0b46cd0ec71c39d16f9f29ef2730a50d680645c5 (patch) | |
tree | b118cacba570299a0d7fba37b2c5be672b095d09 | |
download | aur-adflite-git.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 47 |
2 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..aaf98a5d43fa --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = adflite-git + pkgdesc = Library to handle (replay) of Agata Data Format + pkgver = 20130304 + pkgrel = 3 + url = http://www.fair-center.de/de/fuer-nutzer/experimente/nustar/newsview-nustar/article/agata.html + arch = x86_64 + license = GPL3 + makedepends = git + depends = gcc-libs + provides = adflite + options = !libtool + +pkgname = adflite-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..af27fb185f8c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,47 @@ +# $Id: pkgbuild-mode.el,v 1.23 2007/10/20 16:02:14 juergen Exp $ +# Maintainer: L.G. Sarmiento (Pico) <Luis.Sarmientop-ala-nuclear.lu.se> + +pkgname=adflite-git +pkgver=20130304 +pkgrel=3 +pkgdesc="Library to handle (replay) of Agata Data Format" +url="http://www.fair-center.de/de/fuer-nutzer/experimente/nustar/newsview-nustar/article/agata.html" +arch=('x86_64') +options=('!libtool') +provides=("adflite") +license=('GPL3') +depends=('gcc-libs') +makedepends=('git') +_gitroot='agatagsi@lx-pool.gsi.de:git/adflite' +_gitname='adflite' + +## If you plan to access the GSI machines you are supposed to know the password already. + +build() { + cd ${srcdir} + + if [ -d ${srcdir}/$_gitname ]; then + cd $_gitname && git pull origin + msg "The local files are up-to-date now." + else + git clone --depth 1 $_gitroot $_gitname + fi + + msg "GIT checkout done or server timeout" + msg "Starting make..." + + if [ -d ${srcdir}/$_gitname-build ]; then + rm -rf ${srcdir}/$_gitname-build + fi + + cp -r ${srcdir}/$_gitname ${srcdir}/$_gitname-build || return 1 + cd ${srcdir}/$_gitname-build + ./autogen.sh + ./configure --prefix=/usr + make || return 1 +} + +package() { + cd ${srcdir}/$_gitname-build + make DESTDIR="$pkgdir/" install +} |