summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d498e0945a7de6cfb6277d5863ed7ff4f52e73c3 (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
85
86
87
88
89
90
91
# Maintainer: Elia Nitsche <nitscheelia at gmail.com>
# Contributor: envolution
# Contributor: l-koehler <lorenz.koehler@posteo.de>
# Contributor: katt <magunasu.b97@gmail.com>
# Contributor: Antonio Rojas <arojas@archlinux,org>
# Contributor: Felix Yan <felixonmars@archlinux.org>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Pierre Schmitz <pierre@archlinux.de>
# shellcheck shell=bash disable=SC2034,SC2154

pkgname=dolphin-git
_pkgname=dolphin
pkgver=24.12.2.r181.ga22c2f0
pkgrel=1
pkgdesc='KDE File Manager (git)'
arch=(x86_64)
url='https://invent.kde.org/system/dolphin'
license=(LGPL-2.0-or-later)
provides=("${_pkgname}=${pkgver}")
conflicts=("${_pkgname}")
depends=(baloo
  baloo-widgets
  gcc-libs
  glibc
  kbookmarks
  kcmutils
  kcodecs
  kcolorscheme
  kcompletion
  kconfig
  kconfigwidgets
  kcoreaddons
  kcrash
  kdbusaddons
  kfilemetadata
  kguiaddons
  ki18n
  kiconthemes
  kio
  kio-extras
  kjobwidgets
  knewstuff
  knotifications
  kparts
  kservice
  ktextwidgets
  kuserfeedback
  kwidgetsaddons
  kwindowsystem
  kxmlgui
  phonon-qt6
  qt6-base
  solid)
makedepends=(extra-cmake-modules
  kdoctools
  git)
optdepends=('ffmpegthumbs: video thumbnails'
  'kde-cli-tools: for editing file type options'
  'kdegraphics-thumbnailers: PDF and PS thumbnails'
  'kdenetwork-filesharing: samba usershare properties menu'
  'kio-admin: for managing files as administrator'
  'konsole: terminal panel'
  'purpose: share context menu')
groups=(kde-applications
  kde-system)
source=("${pkgname}::git+${url}#branch=master")
#source=("${pkgname}::git+https://github.com/KDE/dolphin.git")
sha256sums=('SKIP')

pkgver() {
	cd "${pkgname}"
	# the latest tags are not in the commit history
	_latest_tag=$(git tag --sort=-v:refname | head -n 1)
	_commit_count=$(git rev-list ${_latest_tag}..HEAD --count)
	_commit_hash=$(git rev-parse --short=7 HEAD)
	echo "${_latest_tag}.r${_commit_count}.g${_commit_hash}" | sed 's/^v//'
}

prepare() {
	cmake -B build -S ${pkgname} \
		-DBUILD_TESTING=OFF
}

build() {
	cmake --build build --parallel
}

package() {
	DESTDIR="${pkgdir}" cmake --install build
}
# vim:set ts=2 sw=2