summaryrefslogtreecommitdiff
path: root/community/ekg2/PKGBUILD
blob: f44664450b635a3462e17da3066ca37fbb64570a (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
# $Id: PKGBUILD 64838 2012-02-18 16:54:04Z bpiotrowski $
# Maintainer: Bartłomiej Piotrowski <barthalion@gmail.com>
# Contributor: Mateusz Herych <heniekk@gmail.com>

pkgname=ekg2
pkgver=0.3.1
pkgrel=2
pkgdesc="ncurses based Jabber, Gadu-Gadu, Tlen and IRC client"
arch=('i686' 'x86_64' 'mips64el')
url="http://ekg2.org/"
license=('GPL')
depends=('aspell' 'libjpeg' 'python2' 'libgadu' 'gnutls' 'gpm' 'libidn' 'giflib')
optdepends=( 'xosd: for xosd support'
	         'sqlite3: sqlite support'
			 'gtk2: gtk support')
provides=('ekg2-unicode')
source=(ftp://ftp.archlinux.org/other/community/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('68fc05b432c34622df6561eaabef5a40')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  sed -i 's|ncursesw/ncurses.h|ncurses.h|g' configure plugins/ncurses/ecurses.h
  ./configure --prefix=/usr \
              --sysconfdir=/etc \
              --with-libgadu \
              --with-xosd \
              --enable-unicode \
              --enable-shared \
              --without-gpg
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make DESTDIR="$pkgdir" install
  rm -rf "$pkgdir"/usr/lib/perl5/core_perl/perllocal.pod
  mv "$pkgdir"/usr/libexec/ioctld "$pkgdir"/usr/lib/ekg2/ioctld
  rm -rf "$pkgdir"/usr/libexec
  chmod -R 755 "$pkgdir"/usr/lib/perl5
}