summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7a407bbc8d97d9595f299993a6af18d55dfb4df4 (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
# Contributor: Marcell Meszaros < marcell.meszaros AT runbox.eu >
# Contributor: Felix Yan <felixonmars@archlinux.org>
# Contributor: Antonio Rojas <arojas@archlinux.org>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Timothée Ravier <tim@siosm.fr>

_reponame=networkmanager-qt
pkgname="${_reponame}-git"
pkgver=5.249.0.r2.g7bc1121
pkgrel=1
pkgdesc="KDE's Qt wrapper for NetworkManager API (git build)"
arch=(x86_64)
url="https://invent.kde.org/frameworks/${_reponame}"
license=(LGPL-2.0-only LGPL-3.0-only)
depends=(gcc-libs
         glibc
         qt6-base
         qt6-declarative)
makedepends=(doxygen
             extra-cmake-modules-git
             git
             libnm
             qt6-doc
             qt6-tools)
provides=("networkmanager-qt=${pkgver%.r*}")
conflicts=(networkmanager-qt)
source=("${_reponame}::git+${url}.git")
b2sums=('SKIP')

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

build() {
  cmake -B build -S "${_reponame}" \
    -DBUILD_TESTING=OFF \
    -DBUILD_QCH=ON
  cmake --build build
}

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