# Template file for 'ncdc'
pkgname=ncdc
version=1.22.1
revision=1
build_style=gnu-configure
configure_args="--with-geoip"
hostmakedepends="pkg-config"
makedepends="libglib-devel ncurses-devel sqlite-devel gnutls-devel zlib-devel
 bzip2-devel libmaxminddb-devel"
short_desc="Modern and lightweight DC client with a ncurses interface"
maintainer="whoami <whoami@systemli.org>"
license="MIT"
homepage="https://dev.yorhel.nl/ncdc"
distfiles="https://dev.yorhel.nl/download/$pkgname-$version.tar.gz"
checksum=d15fd378aa345f423e59a38691c668f69b516cd4b8afbbcdc446007740c3afad

pre_build() {
	make CC=$CC_FOR_BUILD CFLAGS=$BUILD_CFLAGS makeheaders
}

post_install() {
	vlicense COPYING
}
