blob: 86de512521cc71fb2c2b8bdbc85ac5ec6baa003f (
plain)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
# Maintainer: xiota / aur.chaotic.cx
# options
: ${_pkgtype:=-tabopts}
: ${_commit_patch:=7cce4b12e43b046104bbfc9a6da481e97f4f2f3c}
# basic info
_pkgname="dolphin"
pkgname="$_pkgname${_pkgtype:-}"
pkgver=24.12.2
pkgrel=1
pkgdesc='KDE File Manager - with extended tab options'
url="https://invent.kde.org/xiota/dolphin/-/merge_requests/1"
license=('GPL-2.0-or-later')
arch=(i686 x86_64)
depends=(
'baloo-widgets'
'kcmutils'
'kio-extras'
'knewstuff'
'kparts'
'kuserfeedback'
'plasma-activities'
)
makedepends=(
'extra-cmake-modules'
'git'
'kdoctools'
)
optdepends=(
'ffmpegthumbs: video thumbnails'
'kde-cli-tools: for editing file type options'
'kdegraphics-thumbnailers: PDF and PS thumbnails'
'kio-admin: for managing files as administrator'
'konsole: terminal panel'
'purpose: share context menu'
)
provides=("$_pkgname=$pkgver")
conflicts=("$_pkgname")
_dl_url="https://invent.kde.org/system/dolphin.git#tag=v$pkgver"
_pkgsrc="$_pkgname"
source=(
"$_pkgsrc"::"git+$_dl_url"
"dolphin-tabopts-${_commit_patch::7}.patch"::"https://invent.kde.org/xiota/dolphin/-/commit/${_commit_patch}.patch"
)
sha256sums=(
'SKIP'
'a299037d34c16d8e078e1f751ab6a921bae64f4804755864a5416da2f62db121'
)
prepare() {
cd "$_pkgsrc"
local src
for src in "${source[@]}"; do
src="${src%%::*}"
src="${src##*/}"
src="${src%.zst}"
if [[ $src == *.patch ]]; then
printf '\nApplying patch: %s\n' "$src"
patch -Np1 -F100 -i "$srcdir/$src"
fi
done
}
build() {
local _cmake_options=(
-B build
-S "$_pkgsrc"
-DBUILD_TESTING=OFF
-Wno-dev
)
cmake "${_cmake_options[@]}"
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
|