blob: af27fb185f8c7c90c04de16d051538bb8bd141f9 (
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
|
# $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
}
|