summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c1d4b1b01f7bf7f20c6994dd18a019d83ae397a6 (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

pkgname=kmoretools-git
_name=${pkgname%-git}
pkgver=v5.102.0.r34.g31399a2e
pkgrel=1
pkgdesc='Support for downloading application assets from the network'
arch=(x86_64)
url='https://invent.kde.org/libraries/kmoretools'
license=(LGPL)
depends=(qt6-base)
makedepends=(git ninja extra-cmake-modules-git)
groups=(kf5)
conflicts=(kmoretools)
provides=(kmoretools)
source=("git+https://invent.kde.org/libraries/$_name.git")
sha256sums=('SKIP')

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

build() {
  cmake -G Ninja -DBUILD_QCH=ON -DBUILD_TESTING=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo -B build -S "$_name"
  cmake --build build
}

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