# Maintainer: Natanael Copa pkgname=hexchat pkgver=2.12.0 pkgrel=0 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 openssl-dev dbus-glib-dev perl-dev libsexy-dev python-dev libnotify-dev libproxy-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" ./configure --prefix=/usr \ --sysconfdir=/etc \ --enable-openssl \ --enable-dbus \ --disable-textfe \ --disable-perl \ --enable-python \ --enable-ipv6 \ --enable-shm \ --enable-spell=libsexy \ || 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="aeb62488debe69994176f85b835844ae hexchat-2.12.0.tar.xz" sha256sums="c2072f97510c0fe6ecfb0878750d27179633e08199066972fa00e5a23e67d69d hexchat-2.12.0.tar.xz" sha512sums="e0c5b3bf6626be429ca031fa508064b7dd0afaa070e70aa5f135b26e8f5452c3c3e81c61bca4979976204356a1e71e790a9ae5662d0b0976b9753bc5ab2b1dad hexchat-2.12.0.tar.xz"