updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / pcw-hg / PKGBUILD
blob4cae0e41e64ab06bf2c85ddd753dd2e01a64eff0
1 # Maintainer: tjwoosta <tjwoosta@gmail.com>
3 pkgname='pcw-hg'
4 pkgver=150
5 pkgrel=1
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."
8 arch=('i686' 'x86_64')
9 url="http://www.deepcube.net/code/pcw/"
10 license=('MIT')
11 depends=('ii-emg-hg' 'srw-hg')
12 makedepends=('mercurial')
13 provides=('pcw')
14 conflicts=('pcw')
15 install="$pkgname.install"
17 _hgroot="https://bitbucket.org/emg"
18 _hgrepo="pcw"
20 build() {
21   cd "$srcdir"
22   msg "Connecting to Mercurial server...."
24   if [ -d $_hgrepo ] ; then
25     cd $_hgrepo
26     hg pull -u
27     msg "The local files are updated."
28   else
29     hg clone $_hgroot$_hgrepo
30   fi
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"
39   make
42 package() {
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"
53