summaryrefslogtreecommitdiff
path: root/community/freetalk/PKGBUILD
blob: 26540364eb5b72e431035408cf74b043124c7cee (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
# $Id: PKGBUILD 65202 2012-02-20 10:13:19Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: William Rea <sillywilly@gmail.com>

pkgname=freetalk
pkgver=3.2
pkgrel=5
pkgdesc="A console based Jabber client"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.gnu.org/software/freetalk"
license=('GPL')
depends=('loudmouth' 'guile')
install=freetalk.install
source=(http://savannah.gnu.org/download/freetalk/freetalk-$pkgver.tar.gz)
md5sums=('ab09bd07dde158551f151d281b14642c')

build() {
  cd $srcdir/freetalk-$pkgver

  ./configure --prefix=/usr

  patch -p0 src/callbacks.cc <<EOF
156c156,159
< 	*strchr (from, '/') = '\0';
---
> 	{
> 	char *_tmp = (char*)strchr (from, '/');
> 	*_tmp = '\0';
> 	}
EOF

  make
  make DESTDIR=$pkgdir install
  rm $pkgdir/usr/share/info/dir
}