1 # Maintainer: tjwoosta <tjwoosta@gmail.com>
6 pkgdesc="pcw uses inotify to monitor a directory tree (created by ii) and \
7 open terminals running cw with the in and out files for each channel."
9 url="http://www.deepcube.net/code/pcw/"
11 depends=('ii-emg-hg' 'srw-hg')
12 makedepends=('mercurial')
15 install="$pkgname.install"
17 _hgroot="https://bitbucket.org/emg"
22 msg "Connecting to Mercurial server...."
24 if [ -d $_hgrepo ] ; then
27 msg "The local files are updated."
29 hg clone $_hgroot$_hgrepo
32 msg "Mercurial checkout done or server timeout"
33 msg "Starting make..."
35 rm -rf "$srcdir/$_hgrepo-build"
36 cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
37 cd "$srcdir/$_hgrepo-build"
43 cd "$srcdir/$_hgrepo-build"
44 make PREFIX="/usr" DESTDIR="$pkgdir/" install
45 install -D -m644 LICENSE \
46 "$pkgdir/usr/share/licenses/$pkgname/license.txt"
47 install -D -m755 extras/cw_color.sh \
48 "$pkgdir/usr/bin/cw_color.sh"
49 install -D -m755 extras/chat.sh \
50 "$pkgdir/usr/bin/chat.sh"
51 install -D -m755 extras/pcw_notify.sh \
52 "$pkgdir/usr/bin/pcw_notify.sh"