desktop/kadu/PKGBUILD
2016-08-02 21:08:32 +02:00

41 lines
1.2 KiB
Bash

pkgname=kadu
pkgver=3.0
pkgrel=2
pkgdesc="A Qt-based Gadu-Gadu client"
arch=('x86_64')
url="http://www.kadu.net/"
license=('GPL')
depends=('libgadu' 'libxss' 'enchant' 'phonon-qt5' 'qca-qt5'
'libmpdclient' 'libotr' 'libarchive' 'injeqt' 'xdg-utils' 'qt5-multimedia'
'qt5-x11extras' 'qt5-svg' 'qt5-script' 'qt5-webkit' 'hicolor-icon-theme')
makedepends=('cmake' 'libao' 'libsndfile' 'libxtst' 'curl' 'chrpath' 'ninja'
'qt5-tools' 'qxmpp')
optdepends=('qxmpp: Jabber protocol')
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=('9d42c16682b338c14e6a912efd739447')
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
ninja
}
package() {
DESTDIR="$pkgdir" LIBDIR=/usr/lib ninja -C build install
chrpath -d "$pkgdir"/usr/lib/kadu/plugins/*.so
}