summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9aae870b8205e227f6dffbff12b704bf7e6b1d46 (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
# Maintainer: Melanie Scheirer <mel@nie.rs>

pkgname=attica-git
_name=${pkgname%-git}
pkgver=v5.102.0.r9.g2bab489
pkgrel=1
pkgdesc='Qt5 library that implements the Open Collaboration Services API'
arch=(x86_64)
url='https://projects.kde.org/projects/frameworks/attica'
license=(LGPL)
depends=(qt6-base)
makedepends=(git extra-cmake-modules-git)
groups=(kf5)
conflicts=(attica)
provides=(attica)
source=("git+https://invent.kde.org/frameworks/$_name.git")
md5sums=('SKIP')

pkgver() {
  cd $_name
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cmake -DQT_DEFAULT_MAJOR_VERSION=6 -B build -S $_name
  cmake --build build
}

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