summaryrefslogtreecommitdiff
path: root/repo/irssi/irssi.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2023-05-17 17:01:27 +0100
committerdavidovski <david@davidovski.xyz>2023-05-17 17:01:27 +0100
commit0d37a1ef234c38b27faba43bc3a22f985d311deb (patch)
treedde8df9f508e7323c3d7df599ceade7705c40acd /repo/irssi/irssi.xibuild
parentf29d569cd33a73da5ad675f43a34ad53c5cc9bc6 (diff)
Remove all firmware
Diffstat (limited to 'repo/irssi/irssi.xibuild')
-rw-r--r--repo/irssi/irssi.xibuild67
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/
+}
+