summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e570491f958ab4cbdb2d339d40581a10a6dd2935 (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
# Maintainer: Shantanu Tushar <shantanu@kde.org>
pkgname=ruqola-git
pkgver=2.2.0.r836.g38c3023
pkgrel=1
epoch=
pkgdesc="Rocket.Chat client for the KDE desktop"
arch=('x86_64')
url="https://invent.kde.org/network/ruqola/"
license=('GPL2')
groups=()
depends=('qt6-networkauth' 'qt6-websockets' 'qtkeychain-qt6' 'hicolor-icon-theme' 'syntax-highlighting' 'kwidgetsaddons' 'kuserfeedback' 'knotifyconfig' 'kdoctools' 'prison' 'kidletime' 'ktextaddons' 'kxmlgui' 'ktextwidgets' 'kstatusnotifieritem')
makedepends=('cmake' 'extra-cmake-modules' 'git')
provides=(ruqola)
conflicts=(ruqola)
_name=ruqola
source=("git+https://invent.kde.org/network/$_name.git")
md5sums=('SKIP')

build() {
	mkdir -p "$srcdir/build"
	cd "$srcdir/build"
	cmake "$srcdir/$_name" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib
	cmake --build .
}

package() {
	cd "$srcdir/build"
	DESTDIR="$pkgdir" cmake --install .
}

pkgver() {
	cd "$srcdir/ruqola"
	git describe --long --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}