blob: 3feec09d108327adaebb8a4aff69bcbb7416310f (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=hexchat
pkgver=2.14.0
pkgrel=0
pkgdesc="Graphical IRC client based on XChat"
url="https://hexchat.github.io"
arch="all"
license="GPL-2.0-or-later"
depends=""
makedepends="dbus-glib-dev gtk+2.0-dev libnotify-dev libproxy-dev
libressl-dev libsexy-dev lua5.3-dev meson python3-dev"
install=""
subpackages="$pkgname-doc $pkgname-lang $pkgname-python:_python"
source="https://dl.hexchat.net/$pkgname/$pkgname-$pkgver.tar.xz"
builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$builddir"
meson --prefix=/usr \
-Dwith-perl=false \
-Dwith-lua=lua5.3 \
-Dwith-sysinfo=false \
-Dwith-libcanberra=false \
build_dir/
ninja -C build_dir/
}
package() {
cd "$builddir"
DESTDIR="$pkgdir" ninja -C build_dir/ install
# not worth a -dev pkg
rm -fr "$pkgdir"/usr/include
# remove useless files
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="b23f227065b7911123e335d19cb76bd5f0bfa9c891eb3f68030677a7346a3bf410ab1679b9c349cf4a2819244fc00766552b1e677f33a45db95d7b928daf49ec hexchat-2.14.0.tar.xz"
|