desktop/kadu/PKGBUILD

41 lines
1.2 KiB
Bash
Raw Normal View History

2010-07-22 04:27:58 +08:00
pkgname=kadu
2016-02-14 17:19:47 +08:00
pkgver=3.0
2015-03-25 07:11:24 +08:00
pkgrel=1
pkgdesc="A Qt-based Gadu-Gadu client"
2015-01-31 00:13:01 +08:00
arch=('x86_64')
2010-07-22 04:27:58 +08:00
url="http://www.kadu.net/"
license=('GPL')
2016-02-14 17:19:47 +08:00
depends=('libgadu' 'libxss' 'enchant' 'phonon-qt5' 'qca-qt5'
2015-03-04 20:48:03 +08:00
'libmpdclient' 'libotr' 'libarchive' 'injeqt' 'xdg-utils' 'qt5-multimedia'
2016-02-14 17:19:47 +08:00
'qt5-x11extras' 'qt5-svg' 'qt5-script' 'qt5-webkit' 'hicolor-icon-theme')
2015-03-04 20:48:03 +08:00
makedepends=('cmake' 'libao' 'libsndfile' 'libxtst' 'curl' 'chrpath' 'ninja'
2016-02-14 17:19:47 +08:00
'qt5-tools' 'qxmpp')
optdepends=('qxmpp: Jabber protocol')
2010-07-22 04:27:58 +08:00
conflicts=('kadu-svn')
screenshot=('http://www.kadu.im/wiki/images/thumb/2/24/Screen_mainpage_pl.png/450px-Screen_mainpage_pl.png')
2015-01-31 00:13:01 +08:00
install=kadu.install
2015-03-04 20:48:03 +08:00
source=(http://download.kadu.im/stable/$pkgname-$pkgver.tar.bz2)
2016-02-14 17:19:47 +08:00
md5sums=('9d42c16682b338c14e6a912efd739447')
2015-01-31 00:13:01 +08:00
prepare() {
2015-03-04 20:48:03 +08:00
sed -i 's/unity_integration//g' $pkgname-$pkgver/Plugins.cmake
sed -i 's/indicator_docking//g' $pkgname-$pkgver/Plugins.cmake
2015-01-31 00:13:01 +08:00
}
2010-07-22 04:27:58 +08:00
build() {
2015-01-31 00:13:01 +08:00
mkdir build
cd build
cmake ../$pkgname-$pkgver \
-GNinja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
2016-02-14 17:19:47 +08:00
-DCMAKE_INSTALL_LIBDIR=/usr/lib
2015-01-31 00:13:01 +08:00
ninja
2011-04-15 14:16:53 +08:00
}
2010-07-22 04:27:58 +08:00
2011-04-15 14:16:53 +08:00
package() {
2015-01-31 00:13:01 +08:00
DESTDIR="$pkgdir" LIBDIR=/usr/lib ninja -C build install
chrpath -d "$pkgdir"/usr/lib/kadu/plugins/*.so
2010-07-22 04:27:58 +08:00
}