opt/hexchat/Pkgfile

30 lines
946 B
Plaintext
Raw Normal View History

2013-12-01 10:59:54 +01:00
# Description: GTK+ based IRC client.
# URL: https://hexchat.github.io/
2014-11-10 13:25:50 +01:00
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: gtk iso-codes python3-cffi xorg-libxdamage
# Optional: dbus-glib desktop-file-utils enchant libcanberra libnotify libproxy lua pciutils
2013-12-01 10:59:54 +01:00
name=hexchat
2022-02-18 14:00:05 +01:00
version=2.16.1
2021-10-03 08:41:59 +02:00
release=1
source=(https://dl.hexchat.net/hexchat/$name-$version.tar.xz)
2013-12-01 10:59:54 +01:00
build() {
2022-02-18 14:00:05 +01:00
prt-get isinst lua && PKGMK_HEXCHAT+=' -D with-lua=lua' || PKGMK_HEXCHAT+=' -D with-lua=false'
prt-get isinst libcanberra || PKGMK_HEXCHAT+=' -D libcanberra=disabled'
prt-get isinst dbus-glib || PKGMK_HEXCHAT+=' -D dbus=disabled'
prt-get isinst pciutils && PKGMK_HEXCHAT+=' -Dwith-sysinfo=true'
2022-02-18 14:00:05 +01:00
meson setup build $name-$version $PKGMK_HEXCHAT \
--prefix=/usr \
--buildtype=plain \
--wrap-mode nodownload \
-D b_lto=true \
-D b_pie=true
meson compile -C build -j ${JOBS:-1}
DESTDIR=$PKG meson install -C build
2013-12-01 10:59:54 +01:00
rm -r $PKG/usr/share/locale
}