updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / cloudfuse-git / PKGBUILD
blobdc85451a4b7fd9f2561d1f636bdfba24a5fca02d
1 # This is an example PKGBUILD file. Use this as a start to creating your own,
2 # and remove these comments. For more information, see 'man PKGBUILD'.
3 # NOTE: Please fill out the license field for your package! If it is unknown,
4 # then please put 'unknown'.
6 # Maintainer: Your Name <youremail@domain.com>
7 pkgname=cloudfuse-git
8 pkgver=20110928
9 pkgrel=1
10 epoch=
11 pkgdesc="Filesystem (fuse) implemented on Mosso's Cloud Files"
12 arch=('i686' 'x86_64')
13 url="https://github.com/redbo/cloudfuse"
14 license=('GPL')
15 groups=()
16 depends=('fuse' 'curl' 'openssl' 'libxml2')
17 makedepends=('git')
18 checkdepends=()
19 optdepends=()
20 provides=('cloufuse')
21 conflicts=()
22 replaces=()
23 backup=()
24 options=()
25 install=
26 changelog=
27 source=()
28 noextract=()
29 md5sums=() #generate with 'makepkg -g'
31 _gitroot=https://github.com/redbo/cloudfuse.git
32 _gitname=cloudfuse
35 build() {
36   cd "$srcdir"
38   if [[ -d $_gitname ]]; then
39     cd $_gitname && git pull origin && cd ..
40   else
41     git clone $_gitroot
42   fi
44   rm -rf $_gitname-build
45   git clone $_gitname $_gitname-build
46   cd "$srcdir/$_gitname-build/"
47   ./configure --prefix=/usr 
48   sed -i -e "/#include <curl\/types.h>/d" cloudfsapi.h 
49   make 
52 package() {
53   cd "$srcdir/$_gitname-build/"
54   make DESTDIR=$pkgdir install
58 # vim:set ts=2 sw=2 et: