1 # Maintainer: tjwoosta <tjwoosta@gmail.com>
5 pkgdesc="A simple read wrapper."
7 url="http://deepcube.net/code/srw/"
10 makedepends=('mercurial')
14 _hgroot="https://bitbucket.org/emg"
19 msg "Connecting to Mercurial server...."
21 if [ -d $_hgrepo ] ; then
24 msg "The local files are updated."
26 hg clone $_hgroot $_hgrepo
29 msg "Mercurial checkout done or server timeout"
30 msg "Starting make..."
32 rm -rf "$srcdir/$_hgrepo-build"
33 cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
34 cd "$srcdir/$_hgrepo-build"
40 cd "$srcdir/$_hgrepo-build"
41 make PREFIX="/usr" DESTDIR="$pkgdir/" install
42 install -D -m644 LICENSE \
43 "$pkgdir/usr/share/licenses/$pkgname/license.txt"