# Maintainer: Natanael Copa pkgname=hexchat pkgver=2.12.1 pkgrel=1 pkgdesc="A popular and easy to use graphical IRC (chat) client" url="https://hexchat.github.io" arch="all" license="GPL2+" depends="" makedepends="gtk+2.0-dev libressl-dev dbus-glib-dev perl-dev libsexy-dev python2-dev libnotify-dev libproxy-dev lua5.3-dev bash libtool autoconf automake" install="" subpackages="$pkgname-doc $pkgname-lang $pkgname-python:_python" source="https://dl.hexchat.net/hexchat/hexchat-$pkgver.tar.xz" _builddir="$srcdir"/hexchat-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" LUA=lua5.3 \ ./configure --prefix=/usr \ --sysconfdir=/etc \ --enable-openssl \ --enable-dbus \ --disable-textfe \ --disable-perl \ --enable-python \ --enable-lua \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 # not worth a -dev pkg rm -r "$pkgdir"/usr/include } _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 } md5sums="ff49a1d6e3f47bd4345ce269ad41d205 hexchat-2.12.1.tar.xz" sha256sums="5201b0c6d17dcb8c2cb79e9c39681f8e052999ba8f7b5986d5c1e7dc68fa7c6b hexchat-2.12.1.tar.xz" sha512sums="ef21029108f0c7de527186137a849540665878dab3dbd97993ba48977c81c3e5dc7e7a677e2aa11dcdf324f881659f7c2dcefa1bd092c83d9acad3b536d5a0af hexchat-2.12.1.tar.xz"