summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fb55d799c8a64e37107642fe2051da41dfaa0c3c (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
# Maintainer: Leandro Guedes <leanguedes at icloud dot com>

pkgname=xdg-portal-test-kde-git
pkgver=r139.975b0dc
pkgrel=1
pkgdesc='Test application for Flatpak portals and Qt Flatpak platform plugin'
arch=('x86_64')
url='https://invent.kde.org/libraries/xdg-portal-test-kde'
license=('LGPL-2.1-only')
depends=(
  gcc-libs
  glibc
  gstreamer
  kcoreaddons
  ki18n
  kio
  knotifications
  kwindowsystem
  qt6-base
  qt6-wayland
  xdg-desktop-portal-impl
)
makedepends=(
  extra-cmake-modules
  git
  wayland-protocols
)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("${pkgname%-git}::git+https://invent.kde.org/libraries/xdg-portal-test-kde.git")
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/${pkgname%-git}"

  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cmake -B build -S "${pkgname%-git}" \
    -DBUILD_TESTING=OFF
  cmake --build build
}

package() {
  DESTDIR="$pkgdir" cmake --install build
}