1 # PKGBUILD for ArchLinux
2 # Uses the main git repository as source
3 # Not using _gitroot and _gitname, since this PKGBUILD
4 # is for installing tagged and released versions,
5 # not the latest release.
6 # Contributor: halhen <halhen at k2h dot se>
11 pkgdesc="mount xml files as directory structures"
13 arch=('i686' 'x86_64')
14 url=http://github.com/halhen/xmlfs
15 depends=('fuse>=2.6' libxml2)
20 msg "Connecting to git server..."
22 if [[ -d "$srcdir/$pkgname" ]]; then
23 (cd "$pkgname" && git pull origin master) || return 1
24 msg "Repository updated"
26 git clone "http://github.com/halhen/xmlfs.git" || return 1
27 msg "Repository cloned"
30 rm -rf "$srcdir/$pkgname-build"
31 cp -R "$srcdir/$pkgname"{,"-build"}
32 cd "$srcdir/$pkgname-build"
34 msg "Using version $pkgver..."
35 git checkout $pkgver || return 1
37 msg "Starting make ..."
38 make PREFIX=/usr MANPREFIX=/usr/man DESTDIR=$startdir/pkg install || return 1
39 install -D -m644 LICENSE $startdir/pkg/usr/share/licenses/$pkgname/LICENSE