blob: 7ebd0545cb46aa260b0d61764c081d6d72d539c6 (
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
47
48
|
# 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>
_distname=networkmanager-qt
pkgname="${_distname}-git"
pkgver=5.249.0.r2.g7bc1121
pkgrel=4
pkgdesc="KDE's Qt wrapper for NetworkManager API (git build)"
arch=(x86_64)
url="https://invent.kde.org/frameworks/${_distname}"
license=('LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL')
depends=(gcc-libs
glibc
qt6-base
qt6-declarative)
makedepends=(doxygen
extra-cmake-modules-git
git
libnm
qt6-doc
qt6-tools)
provides=("${_distname}=${pkgver%.r*}")
conflicts=("${_distname}")
source=("${_distname}::git+${url}.git")
b2sums=('SKIP')
pkgver() {
cd ${_distname}
git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cmake -B build -S "${_distname}" \
-DBUILD_TESTING=OFF \
-DBUILD_QCH=ON
cmake --build build
}
package() {
depends+=(networkmanager)
DESTDIR="${pkgdir}" cmake --install build
cd "${_distname}/LICENSES"
install -Dm644 LicenseRef-KDE-Accepted-LGPL.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|