# Template file for 'glirc'
pkgname=glirc
version=2.41
revision=2
build_style=cabal
cabal_index_state=2025-07-04T14:10:45Z
makedepends="ncurses-devel openssl-devel"
short_desc="Console IRC client written in Haskell"
maintainer="Orphaned <orphan@voidlinux.org>"
license="ISC"
homepage="https://github.com/glguy/irc-core"
distfiles="https://github.com/glguy/irc-core/archive/refs/tags/v${version}.tar.gz"
checksum=fbb5bd030ddce70158c4d5654c8fda93093e68b9fb85df4d6cb91ab72a67a6a6
nocross="cabal does not support cross compilation"
nopie=yes	# ghc is currently built without PIE support

post_configure() {
	echo 'package HsOpenSSL' >> cabal.project.local
	echo '  ghc-options:' >> cabal.project.local
	echo '    -optc=-Wno-discarded-qualifiers' >> cabal.project.local
	echo '    -optc=-Wno-deprecated-declarations' >> cabal.project.local
	echo '    -optc=-Wno-incompatible-pointer-types' >> cabal.project.local
}

post_install() {
	vman glirc.1
	vlicense LICENSE
}
