blob: d33c62af02bff48d43bdeee3320949f786dd88fc (
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@icloud.com>
pkgname=xdg-portal-test-kde-git
pkgver=r126.259f4d2
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=(glibc
qt6-base
kio
gstreamer
kwindowsystem
wayland
qt6-wayland
knotifications
gcc-libs
ki18n
kcoreaddons)
makedepends=(git cmake extra-cmake-modules wayland-protocols)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://invent.kde.org/libraries/xdg-portal-test-kde.git')
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
( set -o pipefail
git describe --long --tags --abbrev=7 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
)
}
build() {
cd "$srcdir/${pkgname%-git}"
cmake -B build
cmake --build build
}
package() {
cd "$srcdir/${pkgname%-git}"
DESTDIR="$pkgdir/" cmake --install build
}
|