# Maintainer: Natanael Copa pkgname=irssi pkgver=1.0.6 pkgrel=0 pkgdesc="A modular textUI IRC client with IPv6 support" url="https://irssi.org/" arch="all" license="GPL-2.0-or-later" makedepends="glib-dev libressl-dev ncurses-dev perl-dev automake autoconf libtool" subpackages="$pkgname-doc $pkgname-dev $pkgname-proxy $pkgname-perl" source="https://github.com/irssi/irssi/releases/download/$pkgver/irssi-$pkgver.tar.xz" builddir="$srcdir"/$pkgname-$pkgver # secfixes: # 1.0.3-r0: # - CVE-2017-9468 # - CVE-2017-9469 # 1.0.4-r0: # - CVE-2017-10965 # - CVE-2017-10966 # 1.0.5-r0: # - CVE-2017-15721 # - CVE-2017-15722 # - CVE-2017-15723 # - CVE-2017-15227 # - CVE-2017-15228 # 1.0.6-r0: # - CVE-2018-5205 # - CVE-2018-5206 # - CVE-2018-5207 # - CVE-2018-5208 build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --with-perl=module \ --with-perl-lib=vendor \ --with-proxy make } check() { cd "$builddir" ./src/fe-text/irssi -v } package() { cd "$builddir" make DESTDIR="$pkgdir" install find "$pkgdir" -name perllocal.pod -delete } perl() { depends="$pkgname perl" pkgdesc="Irssi perl support and scripts" mkdir -p "$subpkgdir"/usr/share/irssi mv "$pkgdir"/usr/share/irssi/scripts \ "$subpkgdir"/usr/share/irssi/ mkdir -p "$subpkgdir"/usr/lib/irssi/modules mv "$pkgdir"/usr/lib/irssi/modules/libfe_perl.* \ "$pkgdir"/usr/lib/irssi/modules/libperl_core.* \ "$subpkgdir"/usr/lib/irssi/modules/ mv "$pkgdir"/usr/lib/perl5 "$subpkgdir"/usr/lib/ #need write permission when stripping for i in TextUI/TextUI.so Irssi.so Irc/Irc.so UI/UI.so; do chmod +w "$subpkgdir"/usr/lib/perl5/vendor_perl/auto/Irssi/$1 done } proxy() { depends="$pkgname" pkgdesc="Irssi module for enabling bouncer-like functionality" mkdir -p "$subpkgdir"/usr/lib/irssi/modules mv "$pkgdir"/usr/lib/irssi/modules/libirc_proxy.* "$subpkgdir"/usr/lib/irssi/modules/ } sha512sums="ec7ac952fe0cfdf583540f1a466404a573da169e796a342b423126d7bb5d8f8336baafa27f9aed5d0eabc1f201cc4809723493b731d49e42ae1f2b7ec4099d16 irssi-1.0.6.tar.xz"