aboutsummaryrefslogtreecommitdiffstats
path: root/main/xchat/APKBUILD
blob: c5c67a59d02bfe8649cc6b85171dfa68f4ffcb7f (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xchat
pkgver=2.8.8
pkgrel=0
pkgdesc="A GTK+ based IRC client"
url="http://www.xchat.org/"
license="GPL"
makedepends="pkgconfig gtk+-dev openssl-dev dbus-glib-dev perl-dev
	libxext-dev"
source="http://www.$pkgname.org/files/source/2.8/$pkgname-$pkgver.tar.bz2
	"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	for i in "$srcdir"/*.patch; do
		[ -r "$i" ] || continue
		msg "Applying $i"
		patch -p1 -i "$i" || return 1
	done
}


build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--enable-openssl \
		--enable-dbus \
		--disable-gnome \
		--disable-textfe \
		--disable-perl \
		--disable-python \
		--enable-ipv6 \
		--enable-shm \
		--enable-spell=static || return 1
	make || return 1
}

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

md5sums="6775c44f38e84d06c06c336b32c4a452  xchat-2.8.8.tar.bz2"