updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / castor-client / PKGBUILD
blob86604f00460c6e9c956238e0c1e7515ce4b3e851
1 # Contributor: Jan Kašpar <jan.kaspar at gmail dot com>
2 pkgname=castor-client
3 pkgver=2.1.11
4 pkgrel=7
5 pkgdesc="Client for CERN Advanced STORage manager."
6 arch=('i686' 'x86_64')
7 url="http://castor.web.cern.ch/castor/"
8 license=('EU DataGrid software license')
9 depends=()
10 makedepends=('make' 'imake' 'python2')
12 source=(
13         "http://castorold.web.cern.ch/castorold/DIST/CERN/savannah/CASTOR.pkg/$pkgver-*/$pkgver-$pkgrel/castor-$pkgver-$pkgrel.tar.gz"
14         "python2_patch"
15         "bash-completion"
18 md5sums=('7ee5e5b41d526a38bf276dff43897af2'
19          '8c838ccab6ed5267f280e68650ef4fea'
20          '417cc791dcd0d1964a8900ef9c475c6a')
22 build()
24         cd "$srcdir/castor-$pkgver"
26         export MAJOR_CASTOR_VERSION=2.1
27         export MINOR_CASTOR_VERSION=11.7
29         patch -p0 < "../python2_patch"
30         
31         export LDFLAGS=""
32         
33         ./configure || return 1
34         make client || return 2
37 package()
39         cd "$srcdir/castor-$pkgver"
40         #export DESTDIR="$startdir/pkg"
41         make DESTDIR="$pkgdir/" LIBDIR="/usr/lib" installclient
43         mkdir -p "$pkgdir/etc/bash_completion.d"
44         cp "../bash-completion" "$pkgdir/etc/bash_completion.d/castor"