PortSystem 1.0

name             sic
version          1.3
categories       irc
maintainers      {toby @tobypeterson}
description      extremely fast, small and simple irc client
long_description \
	sic is an extremely fast, small and simple irc client. It \
	reads commands from standard input and prints all server \
	output to standard output. It multiplexes also all channel \
	traffic into one output, that you don't have to switch \
	different channel buffers, that's actually a feature.
homepage         https://tools.suckless.org/sic/
platforms        darwin
license          MIT
master_sites     https://dl.suckless.org/tools/
checksums        rmd160 58c818cd401d2bf5c4fe32451c1611c1961728a2 \
                 sha256 30478fab3ebc75f2eb5d08cbb5b2fedcaf489116e75a2dd7197e3e9c733d65d2

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=\"sic-(.*)\\.tar\\.gz\"
