blob: c5646608c2ffe70cda90bea5b3578193cb1dafd4 (
plain)
1 # Description: GTK+ based IRC client.
2 # URL: http://hexchat.github.io/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: gtk iso-codes xorg-libxdamage
5 # Optional: dbus-glib desktop-file-utils enchant libcanberra libnotify libproxy lua pciutils
6
7 name=hexchat
8 version=2.14.2
9 release=1
10 source=(http://dl.hexchat.net/hexchat/$name-$version.tar.xz)
11
12 build() {
13 cd $name-$version
14
15 # Lua scripting plugin, value is pkg-config name
16 prt-get isinst lua && PKGMK_HEXCHAT+=' -Dwith-lua=lua' || PKGMK_HEXCHAT+=' -Dwith-lua=false'
17
18 # Support for getting proxy information
19 prt-get isinst libproxy || PKGMK_HEXCHAT+=' -Dwith-libproxy=false'
20
21 # Support for freedesktop notifications
22 prt-get isinst libnotify || PKGMK_HEXCHAT+=' -Dwith-libnotify=false'
23
24 # Support for sound alerts
25 prt-get isinst libcanberra || PKGMK_HEXCHAT+=' -Dwith-libcanberra=false'
26
27 # Support used for single-instance and scripting interface
28 prt-get isinst dbus-glib || PKGMK_HEXCHAT+=' -Dwith-dbus=false'
29
30 prt-get isinst pciutils && PKGMK_HEXCHAT+=' -Dwith-sysinfo=true'
31
32 meson build ${PKGMK_HEXCHAT} \
33 --prefix /usr \
34 -Dwith-text=true
35
36 ninja -C build -j ${JOBS:-1}
37 DESTDIR="$PKG" ninja -C build install
38
39 rm -r $PKG/usr/share/locale
40 }
|