/
PKGBUILD
39 lines (32 loc) · 1.16 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
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=cervisia
pkgver=${_kdever}
pkgrel=1
pkgdesc='User friendly version control system front-end, aiming to support CVS and other version control system programs'
url='https://apps.kde.org/cervisia/'
arch=('x86_64')
license=('GPL' 'LGPL' 'FDL')
depends=('ki18n' 'kparts' 'kinit' 'kiconthemes' 'knotifications' 'kwidgetsaddons' 'kitemviews'
'kdesu' 'ktextwidgets')
makedepends=('extra-cmake-modules' 'kdoctools')
groups=('kde' 'kde-sdk' 'kde-uninstall' 'programming')
source=("$_mirror/${pkgname}-${_kdever}.tar.xz")
md5sums=(`grep ${pkgname}-${_kdever}.tar.xz ../kde-sc.md5 | cut -d" " -f1`)
prepare() {
cd ${pkgname}-${pkgver}
#sed -i -e 's|#include <QRegExp>|#include <QtCore/QRegExp>|' ${srcdir}/${pkgname}/cvsservice/cvsaskpass.cpp
}
build() {
cmake -B build -S ${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
cmake --build build
}
package() {
DESTDIR=${pkgdir} cmake --install build
}