blob: 191fda9539908097a1ba79a5a3e2ad47312511f1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Maintainer: TingPing tingping@tingping.se
pkgname=hexchat-git
pkgver=2.11.0.r1218.g5c534ac
pkgrel=1
pkgdesc='A GTK+ based IRC client'
arch=('i686' 'x86_64' 'armv6h')
url='https://hexchat.github.io'
license=('GPL')
options=('!libtool')
depends=('gtk2' 'openssl' 'dbus-glib'
'libcanberra' 'libnotify' 'libproxy'
'hicolor-icon-theme' 'desktop-file-utils' 'sound-theme-freedesktop' 'iso-codes')
makedepends=('intltool' 'git' 'perl' 'python')
optdepends=('enchant: for spell check'
'perl: for perl plugin'
'python: for python plugin')
install='hexchat.install'
provides=('hexchat')
conflicts=('hexchat')
source=('git://github.com/hexchat/hexchat.git')
md5sums=('SKIP')
_gitname='hexchat'
pkgver() {
cd "$_gitname"
# Development releases don't get tags, so pull it from configure.ac
_ver=`autoconf -t 'AC_INIT:$2'`
_rev=`git describe | sed 's/^v[^-]*-/r/; s/-/./'`
echo "$_ver.$_rev"
}
build() {
cd "$srcdir/$_gitname"
./autogen.sh --prefix=/usr --enable-textfe --enable-python=python3 --disable-debug
make -s
}
package() {
cd "$srcdir/$_gitname"
make DESTDIR="$pkgdir" install
# Fix opening irc:// links
desktop-file-edit \
--set-key=Exec --set-value="hexchat -e %U" \
"$pkgdir/usr/share/applications/hexchat.desktop"
}
|