diff --git a/srcpkgs/swirc/template b/srcpkgs/swirc/template new file mode 100644 index 00000000000..b6ef48951f8 --- /dev/null +++ b/srcpkgs/swirc/template @@ -0,0 +1,30 @@ +# Template file for 'swirc' +pkgname=swirc +version=3.2.3 +revision=1 +build_style=configure +make_install_args="PREFIX=/usr" +hostmakedepends="pkg-config which" +makedepends="libcurl-devel libressl-devel ncurses-devel libidn-devel" +checkdepends="cmocka-devel" +short_desc="Curses ICB and IRC client" +maintainer="Markus Uhlin " +license="BSD-3-Clause, ISC, MIT" +homepage="https://www.nifty-networks.net/swirc" +distfiles="https://www.nifty-networks.net/swirc/releases/${pkgname}-${version}.tgz" +checksum="52e273bbc9ea6384841947858d60cb740a65bd80d2257c7cab39d9a4eb919f06" + +post_configure() { + local _file="options.mk" + + if [ ! -f "$_file" ]; then + msg_error "cannot find $_file\n" + fi + + vsed -i "$_file" -e "s/CC=/CC?=/" + vsed -i "$_file" -e "s/CXX=/CXX?=/" +} + +post_install() { + vlicense debian/copyright COPYING +}