# Maintainer: Natanael Copa pkgname=irssi pkgver=1.0.2 pkgrel=1 pkgdesc="A modular textUI IRC client with IPv6 support" url="http://irssi.org/" arch="all" license="GPL2+" 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 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 \ || return 1 make || return 1 } package() { cd "$builddir" make DESTDIR="$pkgdir" install || return 1 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 || return 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="0b5048b1babecaafcd6f2be59523635a3f028c17ceb751776099d74c50fc3daf8fdf52ef5c37f9b765f7a1e5e82f5e41230d14f05530de54386f7190c610d458 irssi-1.0.2.tar.xz"