summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bd37ee957f55ddcb223d22d77d01ef9779e38c87 (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
# Maintainer: Grafcube <grafcube at disroot dot org>

_pkgname=kunifiedpush
pkgname=$_pkgname-git
pkgver=r293.77e2803
pkgrel=1
pkgdesc='UnifiedPush client library and distributor daemon.'
arch=('x86_64')
url='https://invent.kde.org/libraries/kunifiedpush'
license=('LGPL-2.0-or-later')
depends=(
	kcmutils
	kconfigwidgets
	kdbusaddons
	kdoctools
	kiconthemes
	kirigami-addons
	knotifications
	kservice
	qt6-declarative
)
makedepends=(git extra-cmake-modules wayland-protocols cmake ninja)
optdepends=()
conflicts=($_pkgname)
provides=($_pkgname)
source=("git+${url}.git")
sha256sums=('SKIP')

pkgver() {
	cd $srcdir/$_pkgname
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}

build() {
	cd $srcdir/$_pkgname
	CMAKE_BUILD_TYPE="Release" cmake -G Ninja -S . -B build -Wno-dev
	ninja -C build
}

package() {
	cd "$srcdir/$_pkgname"
	DESTDIR=$pkgdir cmake --install build --prefix /usr
	install -Dm644 src/interfaces/org.kde.kunifiedpush.distributor.Management.xml "$pkgdir"/usr/share/dbus-1/interfaces/org.kde.kunifiedpush.distributor.Management.xml
	install -Dm644 src/interfaces/org.unifiedpush.Connector1.xml "$pkgdir"/usr/share/dbus-1/interfaces/org.unifiedpush.Connector1.xml
	install -Dm644 src/interfaces/org.unifiedpush.Distributor1.xml "$pkgdir"/usr/share/dbus-1/interfaces/org.unifiedpush.Distributor1.xml
}