summaryrefslogtreecommitdiffstats
path: root/main/xchat/APKBUILD
blob: 526fab6d00a4be4f6c43fc6291d28be73cab85a5 (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
54
55
56
57
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xchat
pkgver=2.8.8
pkgrel=7
pkgdesc="A GTK+ based IRC client"
url="http://www.xchat.org/"
arch="all"
license="GPL"
subpackages="$pkgname-lang"
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
	midori.patch
	xchat-2.8.8-glib-2.31.patch
	link-gmodule.patch
	"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	update_config_sub || return 1
	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 \
		--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
759fd786be3a2546be33f7533632b5a2  midori.patch
98f5c7b49a3e0bad4ef0b7871fdcd8b5  xchat-2.8.8-glib-2.31.patch
6efe686e4747e1ea22c368cf83fb6ea2  link-gmodule.patch"