blob: 2e6dcfbfd46a517d6ff12d217fce6fe79b4a87c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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/
}
|