# Template file for 'ncdc'
pkgname=ncdc
version=1.24.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"
changelog="https://dev.yorhel.nl/ncdc/changes"
distfiles="https://dev.yorhel.nl/download/ncdc-${version}.tar.gz"
checksum=2a8ab9ad7d43f018fc73ba8babd689dfa44aba8cec53b88e4770185cb97778f7

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

post_install() {
	vlicense COPYING
}
