summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cc0ce85e780fe00a54f49589321f6b9fc5affae9 (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
# Maintainer: Carsten Burgard <cburgard@cern.ch>
pkgname=cvmfs-git
_gitname=cvmfs
pkgver=0.7289.c158f99
pkgrel=1
pkgdesc="CERN VM Filesystem"
arch=('i686' 'x86_64')
url="http://cernvm.cern.ch/portal/filesystem"
license=('BSD')
depends=('fuse' 'sqlite3' 'curl' 'pacparser' 'zlib' 'sparsehash' 'leveldb' 'gtest' 'geoip' 'python-geoip' 'intel-tbb' 'c-ares')
makedepends=('cmake' 'git')
conflicts=('cvmfs')
provides=('cvmfs')
source=('git://github.com/reneme/cvmfs')
md5sums=('SKIP')
_branch="HEAD"
backup=('etc/cvmfs/default.local')
install=cvmfs.install

pkgver() {
  cd "$srcdir/$_gitname"
  echo "0.$(git rev-list --count $_branch).$(git describe --always)"
}

build() {
	cd "$srcdir/$_gitname"
        mkdir -p build
        cd build
        cmake -DBUILD_SERVER=OFF ../ 
}

package() {
	cd "$srcdir/$_gitname/build"
	make DESTDIR="$pkgdir/" install
        sed -e "s/\/etc\/auto.master/\/etc\/autofs\/auto.master/g" -i $pkgdir/usr/bin/cvmfs_config
        echo "CVMFS_REPOSITORIES=atlas.cern.ch,atlas-condb.cern.ch,grid.cern.ch" > $pkgdir/etc/cvmfs/default.local
        echo "CVMFS_HTTP_PROXY=DIRECT" >> $pkgdir/etc/cvmfs/default.local
}