aboutsummaryrefslogtreecommitdiffstats
path: root/main/hexchat/APKBUILD
blob: 42c5cba186582f9889fb5ba26bc10eaa1ab9fcec (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=hexchat
pkgver=2.12.1
pkgrel=0
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 lua5.3-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"
	LUA=lua5.3 \
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--enable-openssl \
		--enable-dbus \
		--disable-textfe \
		--disable-perl \
		--enable-python \
		--enable-lua \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || 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="ff49a1d6e3f47bd4345ce269ad41d205  hexchat-2.12.1.tar.xz"
sha256sums="5201b0c6d17dcb8c2cb79e9c39681f8e052999ba8f7b5986d5c1e7dc68fa7c6b  hexchat-2.12.1.tar.xz"
sha512sums="ef21029108f0c7de527186137a849540665878dab3dbd97993ba48977c81c3e5dc7e7a677e2aa11dcdf324f881659f7c2dcefa1bd092c83d9acad3b536d5a0af  hexchat-2.12.1.tar.xz"