PortSystem 1.0

name             ii
version          2.0
categories       irc
maintainers      {toby @tobypeterson}
description      minimalist FIFO and filesystem-based IRC client
long_description \
	ii is a minimalist FIFO and filesystem-based IRC client. \
	It creates an irc directory tree with server, channel and \
	nick name directories. In every directory a FIFO in file \
	and a normal out file is created.
homepage         https://tools.suckless.org/ii/
platforms        darwin
license          MIT
master_sites     https://dl.suckless.org/tools/
checksums        rmd160 fc1b5118102226f5043e70ca843a86c83584d618 \
                 sha256 4f67afcd208c07939b88aadbf21497a702ad0a07f9b5a6ce861f9f39ffe5425b \
                 size   11129

patchfiles       patch-Makefile

configure {
	reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/Makefile
	reinplace "s|__CC__|${configure.cc}|" ${worksrcpath}/Makefile
	reinplace "s|__CFLAGS__|${configure.cflags}|" ${worksrcpath}/Makefile
	reinplace "s|__LDFLAGS__|${configure.ldflags}|" ${worksrcpath}/Makefile
}

livecheck.type   regex
livecheck.url    [lindex ${master_sites} 0]
livecheck.regex  href=\"ii-(.*)\\.tar\\.gz\"
