/
PKGBUILD
40 lines (34 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
40
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=kdeclarative
pkgver=${_kf5ver}
pkgrel=1
pkgdesc='KDeclarative'
arch=('x86_64')
url='https://projects.kde.org/projects/frameworks/kdeclarative'
license=('LGPL')
depends=('kconfig' 'ki18n' 'kiconthemes' 'kio' 'kwidgetsaddons' 'kwindowsystem' 'kglobalaccel'
'kguiaddons' 'kpackage' 'libepoxy')
makedepends=('extra-cmake-modules')
groups=('kf5')
source=("http://download.kde.org/stable/frameworks/${pkgver}/${pkgname}-${pkgver}.tar.xz")
md5sums=(`grep ${pkgname}-${_kf5ver}.tar.xz ../kf5.md5 | cut -d" " -f1`)
prepare() {
cd ${pkgname}-${pkgver}
# https://bugs.kde.org/show_bug.cgi?id=380270
#patch -p1 -i ${srcdir}/695f24fb522a5ae6fe2530cbd72d3966b234b025.diff
}
build() {
cmake -B build -S ${pkgname}-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DKDE_INSTALL_LIBDIR=lib \
-DKDE_INSTALL_QMLDIR=/usr/lib/qt5/qml \
-DECM_MKSPECS_INSTALL_DIR=/usr/lib/qt5/mkspecs/modules \
-DKDE_INSTALL_PLUGINDIR=/usr/lib/qt5/plugins \
-DBUILD_TESTING=OFF
cmake --build build
}
package() {
DESTDIR=${pkgdir} cmake --install build
}