aboutsummaryrefslogtreecommitdiffstats
path: root/main/hexchat/APKBUILD
blob: e8447c981275a76ef55278eddd54e8a5673d065e (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
58
59
60
61
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=hexchat
pkgver=2.10.2
pkgrel=2
pkgdesc="A popular and easy to use graphical IRC (chat) client"
url="https://hexchat.github.io"
arch="all"
license="GPL2+"
depends=""
makedepends="gtk+2.0-dev openssl-dev dbus-glib-dev perl-dev
	libsexy-dev python-dev libnotify-dev libproxy-dev
	bash libtool autoconf automake"
install=""
subpackages="$pkgname-doc $pkgname-lang $pkgname-python:_python"
source="https://dl.hexchat.net/hexchat/hexchat-$pkgver.tar.xz"

_builddir="$srcdir"/hexchat-$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 --prefix=/usr \
		--sysconfdir=/etc \
		--enable-openssl \
		--enable-dbus \
		--disable-textfe \
		--disable-perl \
		--enable-python \
		--enable-ipv6 \
		--enable-shm \
		--enable-spell=libsexy \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/hexchat/plugins/*.la || return 1
	# not worth a -dev pkg
	rm -r "$pkgdir"/usr/include
}

_python() {
	pkgdesc="Python plugin for hexchat"
	mkdir -p "$subpkgdir"/usr/lib/hexchat/plugins
	mv "$pkgdir"/usr/lib/hexchat/plugins/python.so \
		"$subpkgdir"/usr/lib/hexchat/plugins
}

md5sums="c8e7477ac941295deaeb1732591ab20b  hexchat-2.10.2.tar.xz"
sha256sums="87ebf365c576656fa3f23f51d319b3a6d279e4a932f2f8961d891dd5a5e1b52c  hexchat-2.10.2.tar.xz"
sha512sums="799be6ca02d4f7bad98c005e0fb7dba151717b52841d7f2dd3ed86b80a20de934825a1e58aab4621ac751a605103e68e368a95e9709c48f52b9e5333e5e290ab  hexchat-2.10.2.tar.xz"