opt/hexchat/Pkgfile

39 lines
798 B
Plaintext
Raw Normal View History

2013-12-01 10:59:54 +01:00
# Description: GTK+ based IRC client.
# URL: http://hexchat.github.io/
2014-11-10 13:25:50 +01:00
# Maintainer: Danny Rawlins, crux at romster dot me
2017-09-09 08:53:46 +02:00
# Depends on: autoconf-archive gtk iso-codes libnotify pciutils xorg-libxdamage
2016-09-25 03:55:02 +02:00
# Optional: enchant libcanberra lua
2013-12-01 10:59:54 +01:00
name=hexchat
2016-12-16 05:32:47 +01:00
version=2.12.4
release=3
2018-02-01 09:15:43 +01:00
source=(http://dl.hexchat.net/hexchat/$name-$version.tar.xz
hexchat-enchant2.0.patch
hexchat-enchant2.0_name.patch)
2013-12-01 10:59:54 +01:00
build() {
cd $name-$version
2018-02-01 09:15:43 +01:00
patch -p1 -i $SRC/hexchat-enchant2.0.patch
patch -p1 -i $SRC/hexchat-enchant2.0_name.patch
2018-02-01 09:15:43 +01:00
2016-09-25 03:55:02 +02:00
local LUA
if [ "$(pkginfo -i | grep '^lua ')" ]; then
LUA='--enable-lua'
else
LUA='--disable-lua'
fi
2018-04-06 12:23:16 +02:00
autoreconf -vi
2013-12-01 10:59:54 +01:00
./configure \
--prefix=/usr \
--enable-python=python2 \
2016-09-25 03:55:02 +02:00
--enable-textfe $LUA
2013-12-01 10:59:54 +01:00
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share/locale
}