summaryrefslogtreecommitdiff
path: root/community/kadu
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
committerroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
commit7a65a910b77ad191d69881098c47f9b0c852d92e (patch)
tree9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/kadu
parent60da6abff6c9577a783d72865f11de7a585e912e (diff)
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/kadu')
-rw-r--r--community/kadu/PKGBUILD40
-rw-r--r--community/kadu/kadu.install12
2 files changed, 52 insertions, 0 deletions
diff --git a/community/kadu/PKGBUILD b/community/kadu/PKGBUILD
new file mode 100644
index 000000000..c34fcdf61
--- /dev/null
+++ b/community/kadu/PKGBUILD
@@ -0,0 +1,40 @@
+# $Id: PKGBUILD 89897 2013-05-05 09:24:04Z bpiotrowski $
+# Maintainer: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
+# Contributor: Mateusz Herych
+# Contributor: Jaroslaw Swierczynski <swiergot@aur.archlinux.org>
+
+pkgname=kadu
+pkgver=0.12.3
+pkgrel=3
+pkgdesc='Qt-based Jabber/XMPP and Gadu-Gadu client'
+arch=('i686' 'x86_64')
+url='http://www.kadu.net/'
+license=('GPL')
+depends=('libgadu' 'libxss' 'enchant' 'phonon' 'qca-ossl'
+ 'libidn' 'libmpdclient' 'qtwebkit' 'xdg-utils')
+makedepends=('cmake' 'libao' 'libsndfile' 'libxtst' 'curl' 'optipng')
+install=kadu.install
+source=(http://download.kadu.im/stable/$pkgname-$pkgver.tar.bz2)
+sha256sums=('d607bbd0d00b01bfb70dd15f15c8be4076896a935041651e67a3887ad12ab8a8')
+
+prepare() {
+ find -name '*.png' -exec optipng -quiet -force -fix {} +
+}
+
+build() {
+ mkdir build
+ cd build
+
+ cmake ../$pkgname-$pkgver \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib
+ make
+}
+
+package() {
+ cd build
+ make DESTDIR=$pkgdir LIBDIR=/usr/lib install
+
+ mv $pkgdir/usr/sdk $pkgdir/usr/share/kadu/sdk
+ rm -rf $pkgdir/usr/{lib,include}/{libgadu*,pkgconfig}
+}
diff --git a/community/kadu/kadu.install b/community/kadu/kadu.install
new file mode 100644
index 000000000..f32ae9d17
--- /dev/null
+++ b/community/kadu/kadu.install
@@ -0,0 +1,12 @@
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}
+