blob: 7a95a24522e9c568b5f3e3d9dd2c190032a9a72c (
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
|
# Maintainer: xiota / aur.chaotic.cx
# Contributor: Kaizhao Zhang <zhangkaizhao@gmail.com>
_pkgname="nm-tray"
pkgname="$_pkgname"
pkgver=0.5.1
pkgrel=1
pkgdesc='Simple Qt-based frontend for NetworkManager with icon in system tray'
url='https://github.com/palinek/nm-tray'
license=('GPL-2.0-or-later')
arch=('x86_64' 'aarch64')
depends=(
'networkmanager-qt'
)
makedepends=(
'cmake'
'ninja'
'qt6-tools'
)
_pkgsrc="$pkgname-$pkgver"
source=(
"$pkgname-$pkgver.tar.gz"::"https://github.com/palinek/nm-tray/archive/$pkgver.tar.gz"
)
sha256sums=(
'482ff25dff752ca5e43e9e475afab95fbb28da88e3c87bc4afa3d789a99d5aac'
)
build() {
local _cmake_options=(
-B build
-S "$_pkgsrc"
-G Ninja
-DCMAKE_INSTALL_PREFIX='/usr'
-DNM_TRAY_XDG_AUTOSTART_DIR='/etc/xdg/autostart'
-Wno-dev
)
cmake "${_cmake_options[@]}"
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
install -Dm644 "$_pkgsrc/COPYING" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|