From 30b57944cf2a44271fc8d5e471a935df1011c54c Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sat, 11 Sep 2021 21:40:24 +0200 Subject: [PATCH] swirc: update to 3.3.1. --- srcpkgs/swirc/template | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/srcpkgs/swirc/template b/srcpkgs/swirc/template index 7a2e90cf1d..09ca153aa4 100644 --- a/srcpkgs/swirc/template +++ b/srcpkgs/swirc/template @@ -1,11 +1,13 @@ # Template file for 'swirc' pkgname=swirc -version=3.3.0 +version=3.3.1 revision=1 build_style=configure +configure_args="$(vopt_with notify libnotify)" make_install_args="PREFIX=/usr" -hostmakedepends="pkg-config which" -makedepends="libcurl-devel openssl-devel ncurses-devel libidn-devel" +hostmakedepends="gettext-devel-tools pkg-config which" +makedepends="gettext-devel libcurl-devel libidn-devel ncurses-devel openssl-devel + $(vopt_if notify libnotify-devel)" checkdepends="cmocka-devel" short_desc="Curses ICB and IRC client" maintainer="Markus Uhlin " @@ -13,7 +15,16 @@ license="BSD-3-Clause, ISC, MIT" homepage="https://www.nifty-networks.net/swirc" changelog="https://raw.githubusercontent.com/uhlin/swirc/master/CHANGELOG.md" distfiles="https://www.nifty-networks.net/swirc/releases/${pkgname}-${version}.tgz" -checksum="4faae10ab3e08d544f5377c7ba94d86d7d6c3a4c79e41b11b1b864faab0e5764" +checksum="6066d3e31bb8d7930989586f7a8ade0a04901bc77befe2bcf58d99689d304685" + +build_options="notify" + +desc_option_notify="Enable support for desktop notifications" + +post_extract() { + vsed -i "${wrksrc}/src/events/privmsg.cpp" -e "s,/usr/local/share/swirc,/usr/share/swirc," + vsed -i "${wrksrc}/src/main.cpp" -e "s,/usr/local/share/locale,/usr/share/locale," +} post_configure() { local _file="options.mk" @@ -35,6 +46,7 @@ post_check() { # file during the "make check" phase. Thus a fresh rebuild is # needed. make clean + make -Cpo make ${makejobs} }