1 # Contributor: Anthony Martin <ality@pbrane.org>
2 # Contributor: Chris Brannon <cmbrannon79 (at) gmail.com>
7 pkgdesc="A minimalist FIFO and filesystem-based IRC client"
9 url="http://wmii.de/index.php/WMII/ii"
12 makedepends=('mercurial')
16 md5sums=('17d6db42d3297691e4a8e98598065f59')
18 _hgroot='http://hg.suckless.org/'
24 rm -rf "$_hgrepo-build"
25 if [ ! -d $_hgrepo ]; then
26 hg clone $_hgroot$_hgrepo || return 1
31 cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
32 cd "$srcdir/$_hgrepo-build"
35 sed -i "s|%CFLAGS%|$CFLAGS|g" config.mk
36 sed -i "s|%LDFLAGS%|$LDFLAGS|g" config.mk
39 make DESTDIR="$pkgdir" install
41 install -m755 -d "$pkgdir/usr/share/licenses/ii-hg" || return 1
42 install -m644 LICENSE "$pkgdir/usr/share/licenses/ii-hg" || return 1
43 # make install sets permissions to 775...
44 chmod 755 "$pkgdir/usr/bin/ii"
45 rm -f "$pkgdir/usr/share/doc/ii/LICENSE" # no duplicate files, please