/
PKGBUILD
42 lines (35 loc) · 1.12 KB
/
PKGBUILD
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
35
36
37
38
39
40
41
42
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=libkvkontakte
#pkgver=${_kdever}
pkgver=5.0.0
pkgrel=1
pkgdesc="KDE C++ library for asynchronous interaction with vkontakte.ru social network via its open API."
arch=('x86_64')
url='https://github.com/KDE/libkvkontakte'
license=('GPL' 'LGPL' 'FDL')
depends=('kio' 'ki18n' 'kdewebkit' 'kcoreaddons' 'kwidgetsaddons')
makedepends=('pkg-config' 'extra-cmake-modules' 'kdoctools')
groups=('kdegraphics')
source=("http://download.kde.org/stable/libkvkontakte/${pkgver}/src/${pkgname}-${pkgver}.tar.xz")
md5sums=('38754b63297f0248f572412dc54edb87')
#prepare() {
#cd ${pkgname}-${pkgver}
#sed -i -e 's|KF5::KDELibs4Support|KF5::KDELibs4Support KF5::KHtml|' ${srcdir}/${pkgname}/src/CMakeLists.txt
#}
build() {
mkdir -p build
cd build
cmake ../${pkgname}-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DKDE_INSTALL_LIBDIR=lib \
-DKDE_INSTALL_PLUGINDIR=/usr/lib/qt5/plugins \
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
-DBUILD_TESTING=OFF
make
}
package() {
cd build
make DESTDIR=${pkgdir} install
}