1 # Maintainer: Evan Gates (emg) <evan.gates@gmail.com>
6 pkgdesc="A minimalist FIFO and filesystem-based IRC client. (emg's version)"
8 url="https://bitbucket.org/emg/ii-emg/overview"
11 makedepends=('mercurial')
15 _hgroot="https://bitbucket.org/emg"
20 msg "Connecting to Mercurial server...."
22 if [ -d $_hgrepo ] ; then
25 msg "The local files are updated."
27 hg clone $_hgroot $_hgrepo
30 msg "Mercurial checkout done or server timeout"
31 msg "Starting make..."
33 rm -rf "$srcdir/$_hgrepo-build"
34 cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
35 cd "$srcdir/$_hgrepo-build"
37 # switch to branch emg
40 # Use this to set the irc path in query.sh to ~/.irc if you wish
41 # sed -i 's|IRCPATH=$HOME/irc|IRCPATH=$HOME/.irc|' query.sh
43 sed -i "s|CFLAGS = |CFLAGS = ${CFLAGS} |" config.mk
47 cd "$srcdir/$_hgrepo-build"
48 make PREFIX="/usr" DESTDIR="$pkgdir/" install
49 chmod 755 "$pkgdir/usr/bin/ii"
50 install -D -m644 LICENSE \
51 "$pkgdir/usr/share/licenses/$pkgname/license.txt"