summaryrefslogtreecommitdiff
path: root/community/kadu/PKGBUILD
blob: 23783f2b9448e381316f7c897ce864eb1142df0e (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
# $Id: PKGBUILD 74225 2012-07-23 03:08:13Z allan $
# Maintainer:  Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
# Contributor: Mateusz Herych
# Contributor: Jaroslaw Swierczynski <swiergot@aur.archlinux.org>

pkgname=kadu
pkgver=0.12.0
pkgrel=2
pkgdesc="A Qt-based Jabber/XMPP and Gadu-Gadu client"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.kadu.net/"
license=('GPL')
depends=('libgadu' 'libxss' 'aspell' 'phonon' 'qca-ossl' 'libidn' 'libmpdclient' 'qtwebkit' 'xdg-utils')
makedepends=('cmake' 'libao' 'libsndfile' 'libxtst' 'curl')
install=kadu.install
source=(http://download.kadu.im/stable/$pkgname-$pkgver.tar.bz2)
md5sums=('9e89dfa84561e408b26dae207e176198')

build() {
  cd "$srcdir"
  mkdir build
  cd build
  cmake ../${pkgname}-${pkgver} \
    -DCMAKE_INSTALL_PREFIX=/usr
  make
}

package() {
  cd "$srcdir/build"
  make DESTDIR="$pkgdir" install
  mv "$pkgdir"/usr/sdk "$pkgdir"/usr/share/kadu/sdk
  rm -rf "$pkgdir/usr/{lib,include}/{libgadu*,pkgconfig}"
  rm -rf "$pkgdir/usr/share/kadu/{HISTORY,README}"
}