aboutsummaryrefslogtreecommitdiffstats
path: root/extra/irssi/APKBUILD
blob: bdb3c16c929008532bfd22b36cba14f9f7028e81 (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
# Maintainer: Carlo Landmeter <clandmeter at gmail.com>
pkgname=irssi
pkgver=0.8.13
#_pkgver=0.8.13-rc1
pkgrel=0
pkgdesc="A modular textUI IRC client with IPv6 support"
url="http://irssi.org/"
license='GPL'
depends="glib ncurses ncurses-terminfo openssl"
makedepends="glib-dev openssl-dev ncurses-dev perl-dev pkgconfig g++"
source="http://irssi.org/files/irssi-${pkgver}.tar.bz2"
subpackages="$pkgname-doc $pkgname-dev $pkgname-perl"

build() {
	cd "$srcdir/$pkgname-${pkgver}"

	./configure --prefix=/usr \
	--sysconfdir=/etc \
	--mandir=/usr/share/man \
	--with-perl=module
	make || return 1
	make DESTDIR="$pkgdir" install
}

perl() {
	depends="$pkgname perl"
	mkdir -p "$subpkgdir"/usr/share/irssi
	mv "$pkgdir"/usr/share/irssi/scripts "$subpkgdir"/usr/share/irssi/
	mkdir -p "$subpkgdir"/usr/lib/irssi
	mv "$pkgdir"/usr/lib/irssi/modules "$subpkgdir"/usr/lib/irssi/
	mv "$pkgdir"/usr/lib/perl5 "$subpkgdir"/usr/lib/
}

md5sums="0d6fc2203832b514eff014fffd574664  irssi-0.8.13.tar.bz2"