aboutsummaryrefslogtreecommitdiffstats
path: root/main/bitchx/APKBUILD
blob: 743ab633026552b8648244eb17fc9dfde456fff4 (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
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=bitchx
pkgver=1.2.1
pkgrel=2
pkgdesc="An IRC client"
url="http://www.bitchx.org/"
arch="all"
license="BSD"
depends=""
depends_dev="tcl-dev openssl-dev ncurses-dev"
makedepends="$depends_dev coreutils"
install=""
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/project/bitchx/ircii-pana/bitchx-$pkgver/bitchx-$pkgver.tar.gz
	"

_builddir="$srcdir"/bitchx-$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"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--with-ssl \
		--enable-ipv6 \
		--with-plugins \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="4da13a2dcfa17847168e50e62be4f67a  bitchx-1.2.1.tar.gz"
sha256sums="2d270500dd42b5e2b191980d584f6587ca8a0dbda26b35ce7fadb519f53c83e2  bitchx-1.2.1.tar.gz"
sha512sums="d5e0a151c69a85cca2544db8478af9fbd8fca17f882993fab7f898a95221087bf6219ad2144caedecb5bc508dfa02fa724737c615fbda47aeb8df8298cdfd645  bitchx-1.2.1.tar.gz"