aboutsummaryrefslogtreecommitdiffstats
path: root/community/hexchat
diff options
context:
space:
mode:
Diffstat (limited to 'community/hexchat')
-rw-r--r--community/hexchat/APKBUILD46
-rw-r--r--community/hexchat/force-meson-build-order.patch11
2 files changed, 57 insertions, 0 deletions
diff --git a/community/hexchat/APKBUILD b/community/hexchat/APKBUILD
new file mode 100644
index 0000000000..fb0b16e13a
--- /dev/null
+++ b/community/hexchat/APKBUILD
@@ -0,0 +1,46 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=hexchat
+pkgver=2.16.0
+pkgrel=0
+pkgdesc="Graphical IRC client based on XChat"
+url="https://hexchat.github.io"
+arch="all !armhf !armv7"
+license="GPL-2.0-or-later"
+makedepends="dbus-glib-dev gtk+2.0-dev iso-codes libnotify-dev libproxy-dev
+ openssl1.1-compat-dev libsexy-dev libxml2-dev lua5.4-dev meson python3-dev
+ py3-cffi"
+subpackages="$pkgname-doc $pkgname-lang $pkgname-python:_python"
+source="https://dl.hexchat.net/hexchat/hexchat-$pkgver.tar.xz
+ force-meson-build-order.patch
+ "
+
+build() {
+ abuild-meson \
+ -Dwith-perl=false \
+ -Dwith-lua=lua5.4 \
+ -Dwith-sysinfo=false \
+ -Dwith-libcanberra=false \
+ -Dwith-python=python3-embed \
+ build_dir/
+ meson compile ${JOBS:+-j ${JOBS}} -C build_dir/
+}
+
+package() {
+ DESTDIR="$pkgdir" meson install --no-rebuild -C build_dir
+
+ # not worth a -dev pkg
+ rm -fr "$pkgdir"/usr/include
+ rm -fr "$pkgdir"/usr/lib/pkgconfig
+}
+
+_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
+}
+
+sha512sums="
+4802f6efe0883f48d3d56ee949be1fc224b76a3c76956dcba3f913679e91424ba53c5c0d68bb4e0e790b16a08689111098958ead4c83c35cddf39855fe07c207 hexchat-2.16.0.tar.xz
+f579622330391fbce798bf9b0e5c1d07975a188b79f7160ab8c921b7df92b2d31444f30d6f62b7b08f7543a4ef40975ecf53705903374b73069bb369967491c5 force-meson-build-order.patch
+"
diff --git a/community/hexchat/force-meson-build-order.patch b/community/hexchat/force-meson-build-order.patch
new file mode 100644
index 0000000000..be0c72a6f1
--- /dev/null
+++ b/community/hexchat/force-meson-build-order.patch
@@ -0,0 +1,11 @@
+--- a/src/fe-gtk/meson.build
++++ b/src/fe-gtk/meson.build
+@@ -86,7 +86,7 @@
+
+ executable('hexchat',
+ sources: resources + hexchat_gtk_sources,
+- dependencies: hexchat_gtk_deps,
++ dependencies: [hexchat_gtk_deps,declare_dependency(sources: textevents)],
+ c_args: hexchat_gtk_cflags,
+ link_args: hexchat_gtk_ldflags,
+ install: true,