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 # See http://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines
7 # for more information on packaging from Mercurial(hg) sources.
9 # Maintainer: Your Name <youremail@domain.com>
10 pkgname=wii-backup-fusion-hg
13 pkgdesc="graphical frontend to wimm's iso tools"
15 url="http://wiibafu.codeplex.com/"
17 depends=("qt" "wiimms-iso-tools")
18 makedepends=('mercurial')
27 md5sums=() #generate with 'makepkg -g'
29 _hgroot="https://hg01.codeplex.com/wiibafu"
34 msg "Connecting to Mercurial server...."
36 if [ -d $_hgrepo ] ; then
39 msg "The local files are updated."
41 hg clone $_hgroot $_hgrepo
44 msg "Mercurial checkout done or server timeout"
45 msg "Starting make..."
47 rm -rf "$srcdir/$_hgrepo-build"
48 cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
49 cd "$srcdir/$_hgrepo-build"
60 cd "$srcdir/$_hgrepo-build"
61 mkdir -p $pkgdir/usr/bin
62 install -m 755 bin/WiiBaFu $pkgdir/usr/bin