aboutsummaryrefslogtreecommitdiffstats
path: root/main/irssi/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/irssi/APKBUILD')
-rw-r--r--main/irssi/APKBUILD32
1 files changed, 23 insertions, 9 deletions
diff --git a/main/irssi/APKBUILD b/main/irssi/APKBUILD
index 4310d19c20..52c0f9bdcc 100644
--- a/main/irssi/APKBUILD
+++ b/main/irssi/APKBUILD
@@ -1,18 +1,31 @@
# Maintainer: Kiyoshi Aman <kiyoshi.aman at gmail.com>
pkgname=irssi
pkgver=0.8.15
-pkgrel=4
+pkgrel=6
pkgdesc="A modular textUI IRC client with IPv6 support"
url="http://irssi.org/"
arch="all"
license='GPL'
depends=
makedepends="glib-dev openssl-dev ncurses-dev perl-dev pkgconfig"
-source="http://irssi.org/files/irssi-${pkgver}.tar.bz2"
+source="
+ http://irssi.org/files/irssi-${pkgver}.tar.bz2
+ $pkgname-italics.patch
+ "
subpackages="$pkgname-doc $pkgname-dev $pkgname-perl:perl $pkgname-proxy:proxy"
_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"
@@ -20,7 +33,7 @@ build() {
--sysconfdir=/etc \
--mandir=/usr/share/man \
--with-perl=module \
- --with-proxy
+ --with-proxy
make || return 1
make DESTDIR="$pkgdir" install
}
@@ -37,7 +50,7 @@ perl() {
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/
+ "$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
chmod +w "$subpkgdir"/usr/lib/perl5/core_perl/auto/Irssi/TextUI/TextUI.so
@@ -47,10 +60,11 @@ perl() {
}
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/
+ 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="1dcb3f511b88df94b0c996f36668c7da irssi-0.8.15.tar.bz2"
+md5sums="1dcb3f511b88df94b0c996f36668c7da irssi-0.8.15.tar.bz2
+bb8b9f8b960837ad061a8e5b9b19824b irssi-italics.patch"