summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1f0f38ddd97121a0ca899cdadde4d1ff49caa405 (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: Jonas Bögle <aur@iwr.sh>
# Contributor: sergeyshevch <sergeyshevchdevelop@gmail.com>

_pkgname=krunner-vscodeprojects
pkgname=$_pkgname
pkgver=2.0.0
pkgrel=1
pkgdesc="Open VSCode Project Manager projects from Krunner"
arch=('any')
url="https://github.com/alex1701c/$_pkgname.git"
source=("https://github.com/alex1701c/$_pkgname/archive/${pkgver}.tar.gz")
md5sums=('3dcb0b63b51fdf228b98cd31ea86f59f')
groups=()
depends=(
  krunner
  kservice
)
makedepends=(
  cmake
  extra-cmake-modules
)
provides=("$_pkgname")
conflicts=("$_pkgname")
install="${_pkgname}.install"
license=(LGPL3)
options=()

build() {
  cd "${_pkgname}-${pkgver}" || exit 1

  mkdir -p build
  cd build

  cmake .. -DCMAKE_BUILD_TYPE=Release -DKDE_INSTALL_USE_QT_SYS_PATHS=ON -DBUILD_WITH_QT6=ON
  make -j$(nproc)
}

package() {
  cd "${_pkgname}-${pkgver}" || exit 1

  cd build
  make install DESTDIR="${pkgdir}"
}