blob: ab47d43c9fa71d70a3e669ba17281a9542ccf5f5 (
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
# Maintainer: Kiyoshi Aman <kiyoshi.aman at gmail.com>
pkgname=irssi
pkgver=0.8.16
pkgrel=1
pkgdesc="A modular textUI IRC client with IPv6 support"
url="http://irssi.org/"
arch="all"
license="GPL2+"
depends=
makedepends="glib-dev openssl-dev ncurses-dev perl-dev automake autoconf libtool"
subpackages="$pkgname-doc $pkgname-dev $pkgname-proxy $pkgname-perl"
source="http://irssi.org/files/irssi-$pkgver.tar.bz2
$pkgname-italics.patch
irssi-0.8.15-man-fix.patch
irssi-0.8.15-no-static-unload.patch"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
autoreconf -i
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--with-perl=module \
--with-proxy \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
find "$pkgdir" -name perllocal.pod -delete
rm "$pkgdir"/usr/lib/irssi/modules/*.la
}
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/core_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/
}
md5sums="4346119c4c000d0198cda17666ff1f06 irssi-0.8.16.tar.bz2
bb8b9f8b960837ad061a8e5b9b19824b irssi-italics.patch
6e776c1c5a8dd4a8d03e710ff783f919 irssi-0.8.15-man-fix.patch
96aec1545b531e2a378ae0e38ccbe6e9 irssi-0.8.15-no-static-unload.patch"
sha256sums="3f7afed2a2754f1f5bf5cf2c87476f3c4d4aa5d71f9f4f68d05f927220d19f97 irssi-0.8.16.tar.bz2
3e65898551e89e99ddce83ab69a8a37209181a1e6ae09bd9412805c9bf8cffa5 irssi-italics.patch
3c504ba356b2e0d53a767b8194b6b31b2ee41a15c6bc27ae4c31f782f41a1411 irssi-0.8.15-man-fix.patch
ce57e741311b7335cded9da4d7f7f3f68b3b367fbe457043d0e06674c76d48d9 irssi-0.8.15-no-static-unload.patch"
sha512sums="47ad923cc91d5eee3f402126f4da396544cef943f6313af3fd102953939224e97c1bba31af3ac93e67fc84f089b0cfc73e8e7dd7b46b81abe1326567fef33de0 irssi-0.8.16.tar.bz2
cc46ee115cbad0a1df55f4d6fff31b0dddc526c29b49108338c16baf4b632627a818b8fb0ab4b6a51cf1c0e1b5da26eaecf3ecf087bdedcc1b7a80e21d0e5c08 irssi-italics.patch
7e081427c84df33a27d083e7c43ba34af7059e1344b0d6131c586affb9515c19adbcadb32ff5dc8a10824a59a88da46e40fd8074a856ea247c7f0a19115b8ac8 irssi-0.8.15-man-fix.patch
1dd5f2d622d825daaab29e9ef19edc44e890a7e7ba82623c0e090b7828051ec5a97faf03a5a755e966b53c891dd645076e8a50a69c2abb15998ca3b42a117479 irssi-0.8.15-no-static-unload.patch"
|