summaryrefslogtreecommitdiffstats
path: root/main/xchat/APKBUILD
blob: cb4bdbef65eda65fb6a7b619544fe8ad8fb1e3ac (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xchat
pkgver=2.8.6
pkgrel=2
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
	http://www.$pkgname.org/files/source/2.8/patches/xc286-smallfixes.diff
	depreciated-macros.patch
	$pkgname-gtk2.patch"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	patch -p1 < ../xc286-smallfixes.diff || return 1
	patch -p1 -i "$srcdir"/depreciated-macros.patch || return 1
	patch -p1 < ../xchat-gtk2.patch || return 1
}


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="1f2670865d43a23a9abc596dde999aca  xchat-2.8.6.tar.bz2
eb68b6261bf6740cb5f223627eb8f384  xc286-smallfixes.diff
daee42354f95ca54a84248c3cb690fee  depreciated-macros.patch
f3fe00982c0bec93152ed0b32438ef87  xchat-gtk2.patch"