blob: 6aa3dd88f4fa05c3edb033bfe7296caf132b4386 (
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
|
# Maintainer: Andrew Shark <ashark linuxcomp ru>
pkgname=kf6-servicemenus-jetbrains-dolphin-plugin-git
pkgver=r49.2922bbf
pkgrel=1
pkgdesc="Open directories and associated projects in the JetBrains IDEs"
license=('GPL')
_project_name="JetBrainsDolphinPlugin"
_url='https://github.com/alex1701c'
_submodule_name="jetbrains-api"
url="$_url/$_project_name"
arch=('x86_64')
depends=('kio')
makedepends=('git' 'cmake' 'extra-cmake-modules')
_branch=master
source=("git+$url#branch=$_branch"
"git+$_url/$_submodule_name#branch=$_branch")
sha256sums=('SKIP'
'SKIP')
pkgver() {
cd "$srcdir/$_project_name"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/$_project_name"
git submodule init
git config submodule.src/jetbrains-api.url "$srcdir/jetbrains-api"
git -c protocol.file.allow=always submodule update
}
build() {
mkdir -p "$srcdir/$_project_name/build"
cd "$srcdir/$_project_name/build"
cmake -DCMAKE_INSTALL_PREFIX=/usr -DKDE_INSTALL_USE_QT_SYS_PATHS=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_WITH_QT6=ON ..
make
}
package() {
cd "$srcdir/$_project_name/build"
make DESTDIR="$pkgdir" install
}
|