-
Notifications
You must be signed in to change notification settings - Fork 1
/
PKGBUILD
35 lines (31 loc) · 1018 Bytes
/
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
# Maintainer Piotr Matela <piotrekmat@protonmail.com>
pkgname=dolphin-git
pkgver=22.04.0.r55.g9b5f56980
pkgrel=1
pkgdesc='KDE File Manager (Git)'
arch=(i686 x86_64)
url=https://kde.org/applications/en/system/org.kde.dolphin
license=(LGPL)
depends=(baloo-widgets knewstuff kio-extras kcmutils kparts kinit kactivities)
makedepends=(extra-cmake-modules-git kdoctools-git packagekit-qt5 git)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://invent.kde.org/system/dolphin.git'
'0001-Revert-Disallow-executing-Dolphin-as-root-on-Linux.patch')
md5sums=('SKIP'
'0d7e252752080fb3c38093dfab42ea63')
pkgver() {
git -C "${pkgname%-git}" describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
patch -p1 -d dolphin -i "$srcdir/0001-Revert-Disallow-executing-Dolphin-as-root-on-Linux.patch"
cd $srcdir
}
build() {
cmake -B build -S "${pkgname%-git}" \
-DBUILD_TESTING=OFF
cmake --build build
}
package() {
DESTDIR="${pkgdir}" cmake --install build
}