updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / lua-flu-hg / PKGBUILD
blobff9cc3e8a904d1409eb06753d4531709844a4843
1 # Contributor: Linus Sjögren <thelinx@unreliablepollution.net>
2 pkgname=lua-flu-hg
3 pkgver=45
4 pkgrel=2
5 pkgdesc="Filesystems in Lua Userspace"
6 arch="any"
7 url="http://piratery.net/flu/"
8 license=('MIT')
9 depends=('lua>=5.1')
10 makedepends=('mercurial' 'fuse')
12 _hgroot="http://hg.piratery.net"
13 _hgrepo="flu"
15 build() {
16   cd "$srcdir"
17   msg "Connecting to Mercurial server...."
19   if [ -d $_hgrepo ] ; then
20     cd $_hgrepo
21     hg pull -u || return 1
22     msg "The local files are updated."
23   else
24     hg clone $_hgroot $_hgrepo || return 1
25   fi
27   msg "Mercurial checkout done or server timeout"
28   msg "Starting make..."
30   rm -rf "$srcdir/$_hgrepo-build"
31   cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
32   cd "$srcdir/$_hgrepo-build"
34   #
35   # BUILD HERE
36   #
38         make install PREFIX=$pkgdir/usr
39         install -Dm0664 doc/LICENSE.txt \
40          $pkgdir/usr/share/licenses/$pkgname/LICENSE.txt