diff options
Diffstat (limited to 'repo/irssi')
-rw-r--r-- | repo/irssi/irssi.xibuild | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/repo/irssi/irssi.xibuild b/repo/irssi/irssi.xibuild new file mode 100644 index 0000000..2e6dcfb --- /dev/null +++ b/repo/irssi/irssi.xibuild @@ -0,0 +1,67 @@ +#!/bin/sh + +NAME="irssi" +DESC="Modular textUI IRC client with IPv6 support" + +MAKEDEPS="glib openssl ncurses perl automake autoconf libtool libotr" + +PKG_VER=1.4.3 +SOURCE="https://github.com/irssi/irssi/releases/download/$PKG_VER/irssi-$PKG_VER.tar.xz" + +build() { + ./configure \ + + + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --with-perl=module \ + --with-perl-lib=vendor \ + --with-proxy \ + --enable-true-color \ + --with-otr=yes + make +} + +check() { + ./src/fe-text/irssi -v +} + +package() { + make DESTDIR="$PKG_DEST" install + find "$PKG_DEST" -name perllocal.pod -delete +} + +perl() { + depends="irssi perl" + pkgdesc="Irssi perl support and scripts" + mkdir -p "$PKG_DEST"/usr/share/irssi + mv "$PKG_DEST"/usr/share/irssi/scripts \ + "$PKG_DEST"/usr/share/irssi/ + mkdir -p "$PKG_DEST"/usr/lib/irssi/modules + mv "$PKG_DEST"/usr/lib/irssi/modules/libfe_perl.* \ + "$PKG_DEST"/usr/lib/irssi/modules/libperl_core.* \ + "$PKG_DEST"/usr/lib/irssi/modules/ + mv "$PKG_DEST"/usr/lib/perl5 "$PKG_DEST"/usr/lib/ + #need write permission when stripping + for i in TextUI/TextUI.so Irssi.so Irc/Irc.so UI/UI.so; do + chmod +w "$PKG_DEST"/usr/lib/perl5/vendor_perl/auto/Irssi/$1 + done +} + +proxy() { + depends="irssi" + pkgdesc="Irssi module for enabling bouncer-like functionality" + mkdir -p "$PKG_DEST"/usr/lib/irssi/modules + mv "$PKG_DEST"/usr/lib/irssi/modules/libirc_proxy.* "$PKG_DEST"/usr/lib/irssi/modules/ +} + +otr() { + depends="irssi" + pkgdesc="Irssi module for enabling OTR functionality" + mkdir -p "$PKG_DEST"/usr/lib/irssi/modules + mv "$PKG_DEST"/usr/lib/irssi/modules/libotr_core.* "$PKG_DEST"/usr/lib/irssi/modules/ + mkdir -p "$PKG_DEST"/usr/share/irssi/help + mv "$PKG_DEST"/usr/share/irssi/help/otr "$PKG_DEST"/usr/share/irssi/help/ +} + |