# Contributor: Sergiy Stupar <owner@sestolab.pp.ua>
# Maintainer: Sergiy Stupar <owner@sestolab.pp.ua>
pkgname=kirc
pkgver=0.3.3
pkgrel=0
pkgdesc="Tiny IRC client written in POSIX C99"
url="https://github.com/mcpcpc/kirc"
arch="all"
license="MIT"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/mcpcpc/kirc/archive/$pkgver.tar.gz"
options="!check" # No tests

prepare() {
	default_prepare
	sed -i 's/^\(install:\) all$/\1/' Makefile
}

build() {
	make PREFIX=/usr CFLAGS="$CFLAGS -std=c99"
}

package() {
	make PREFIX=/usr DESTDIR="$pkgdir" install
}

sha512sums="
f665d168aeabf3ba107ed2270838b21dfef164d651755b774651407caa12ca9991936f45d83e68285ca9f2e7fe9e19153fe6d13e9fcdb1738e9d76d3b54c7c1c  kirc-0.3.3.tar.gz
"
