desktop/kadu/PKGBUILD
2015-03-24 23:11:24 +00:00

41 lines
1.2 KiB
Bash

pkgname=kadu
pkgver=2.1
pkgrel=1
pkgdesc="A Qt-based Gadu-Gadu client"
arch=('x86_64')
url="http://www.kadu.net/"
license=('GPL')
depends=('libgadu' 'libxss' 'enchant' 'phonon-qt5' 'qca-ossl' 'qca-qt5' 'libidn'
'libmpdclient' 'libotr' 'libarchive' 'injeqt' 'xdg-utils' 'qt5-multimedia'
'qt5-quick1' 'qt5-declarative' 'qt5-webkit' 'qt5-x11extras')
makedepends=('cmake' 'libao' 'libsndfile' 'libxtst' 'curl' 'chrpath' 'ninja'
'qt5-tools')
conflicts=('kadu-svn')
screenshot=('http://www.kadu.im/wiki/images/thumb/2/24/Screen_mainpage_pl.png/450px-Screen_mainpage_pl.png')
install=kadu.install
source=(http://download.kadu.im/stable/$pkgname-$pkgver.tar.bz2)
md5sums=('b40f95123b1167c51c26bee8d56577d2')
prepare() {
sed -i 's/unity_integration//g' $pkgname-$pkgver/Plugins.cmake
sed -i 's/indicator_docking//g' $pkgname-$pkgver/Plugins.cmake
}
build() {
mkdir build
cd build
cmake ../$pkgname-$pkgver \
-GNinja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
-DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt5
ninja
}
package() {
DESTDIR="$pkgdir" LIBDIR=/usr/lib ninja -C build install
chrpath -d "$pkgdir"/usr/lib/kadu/plugins/*.so
}