/
PKGBUILD
46 lines (39 loc) · 1.57 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
43
44
45
46
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=kio-extras
pkgver=${_kdever}
pkgrel=1
pkgdesc='Additional components to increase the functionality of KIO'
arch=('x86_64')
url='https://invent.kde.org/network/kio-extras'
license=('LGPL')
depends=('exiv2' 'karchive6' 'kconfig6' 'kconfigwidgets6' 'kcoreaddons6' 'kdbusaddons6' 'kdnssd6' 'ki18n6'
'kio6' 'solid6' 'kbookmarks6' 'kguiaddons6' 'plasma-activities-stats' 'syntax-highlighting6' 'kcmutils6'
'libmtp' 'libssh' 'openexr' 'samba' 'qt6-webengine' 'qt6-5compat' 'libappimage'
'libkexiv6' 'phonon-qt6' 'kdsoap' 'kdsoap-ws-discovery-client' 'qcoro-qt6')
makedepends=('extra-cmake-modules' 'kdoctools6' 'gperf')
conflicts=('kio-extras6')
replaces=('kio-extras6')
provides=('kio-extras6')
source=("https://download.kde.org/stable/release-service/${pkgver}/src/${pkgname}-${pkgver}.tar.xz")
md5sums=(`grep ${pkgname}-${_kdever}.tar.xz ../kde-sc.md5 | cut -d" " -f1`)
prepare() {
cd ${pkgname}-${pkgver}
#patch -p1 -i ${srcdir}/322fd114961916234da43330af90b0fc1d3d0aad.diff
#sed -i 's|find_package(KDSoap|find_package(KDSoap-qt6|' smb/kdsoap-ws-discovery-client/CMakeLists.txt
}
build() {
cmake -B build -S ${pkgname}-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DKDE_INSTALL_LIBDIR=lib \
-DCMAKE_INSTALL_LIBEXECDIR=lib \
-DBUILD_TESTING=OFF \
-DQT_MAJOR_VERSION=6
cmake --build build
}
package() {
DESTDIR=${pkgdir} cmake --install build
# conflicts with kio kf5
rm -r ${pkgdir}/usr/share/applications/kcm_trash.desktop
}