aboutsummaryrefslogtreecommitdiffstats
path: root/community/hexchat/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/hexchat/APKBUILD')
-rw-r--r--community/hexchat/APKBUILD58
1 files changed, 58 insertions, 0 deletions
diff --git a/community/hexchat/APKBUILD b/community/hexchat/APKBUILD
new file mode 100644
index 00000000000..473fd0c8c41
--- /dev/null
+++ b/community/hexchat/APKBUILD
@@ -0,0 +1,58 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=hexchat
+pkgver=2.16.2
+pkgrel=1
+pkgdesc="Graphical IRC client based on XChat"
+url="https://hexchat.github.io"
+arch="all"
+license="GPL-2.0-or-later"
+makedepends="
+ dbus-glib-dev
+ gtk+2.0-dev
+ iso-codes-dev
+ libnotify-dev
+ libproxy-dev
+ libsexy-dev
+ libxml2-dev
+ lua5.4-dev
+ meson
+ openssl-dev>3
+ py3-cffi
+ py3-setuptools
+ python3-dev
+ "
+subpackages="$pkgname-doc $pkgname-lang $pkgname-python:_python"
+source="https://github.com/hexchat/hexchat/releases/download/v$pkgver/hexchat-$pkgver.tar.xz
+ force-meson-build-order.patch
+ "
+options="!check" # No test suite
+
+build() {
+ abuild-meson \
+ -Dwith-perl=false \
+ -Dwith-lua=lua5.4 \
+ -Dwith-sysinfo=false \
+ -Dwith-python=python3-embed \
+ build_dir/
+ meson compile -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"
+ depends="$pkgname=$pkgver-r$pkgrel py3-cffi"
+ amove usr/lib/hexchat/plugins/python.so
+ amove usr/lib/hexchat/python
+}
+
+sha512sums="
+2ceb4332328c4acf55a46bf5c45788a7f3a73fd2ffd676751c75cc08ca04ced5569c1e6406877e6f2972b8967e94bea2ad70a6966ade7cd811b5c4d700409ee2 hexchat-2.16.2.tar.xz
+f579622330391fbce798bf9b0e5c1d07975a188b79f7160ab8c921b7df92b2d31444f30d6f62b7b08f7543a4ef40975ecf53705903374b73069bb369967491c5 force-meson-build-order.patch
+"