updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / modfs-git / PKGBUILD
blobc986f1328dd6460f083d94454f332dd8f8117c4b
1 #Maintainer: Florian Léger <florian6 dot leger at laposte dot net>
2 pkgname=modfs-git
3 pkgver=20110301
4 pkgrel=1
5 pkgdesc="Wrapper around unionfs-fuse that uses a file-based branches configuration."
6 arch=(any)
7 url="https://gist.github.com/849049"
8 license=('custom:WTFPL')
9 groups=()
10 depends=('unionfs-fuse')
11 makedepends=('git')
12 source=(http://sam.zoy.org/wtfpl/COPYING)
13 md5sums=('389a9e29629d1f05e115f8f05c283df5')
15 _gitroot="http://github.com/gist/849049.git"
16 _gitname="modfs"
18 build() {
19   cd "$srcdir"
20   msg "Connecting to GIT server...."
22   if [ -d $_gitname ] ; then
23     cd $_gitname && git pull origin
24     msg "The local files are updated."
25   else
26     git clone $_gitroot $_gitname
27   fi
29   msg "GIT checkout done or server timeout"
30   msg "Starting make..."
32   rm -rf "$srcdir/$_gitname-build"
33   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34   cd "$srcdir/$_gitname-build"
37 package() {
38   install -Dm755 "$srcdir/$_gitname-build/modfs.sh" "$pkgdir/usr/bin/modfs"
39   install -Dm644 "$srcdir/COPYING" "$pkgdir/usr/share/licenses/$pkgname/COPYING"
40