summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2b959ff39a8d32f40bd898e1fff09d99daa98bf8 (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
# Maintainer: Stanislaw Grams <stanislawgrams@gmail.com>
pkgname=wireless-info-icon-git
pkgver=20231225
pkgrel=1
pkgdesc=" Tray icon with Wi-Fi signal power level information and control (rx and tx)."
arch=('any')
url="https://github.com/kkonradpl/wireless-info-icon"
license=('GPL2')
depends=('qt5-base')
provides=('wireless-info-icon')
conflicts=('wireless-info-icon')
makedepends=('git' 'cmake' 'ninja' 'pkgconf' 'qt5-base')
source=("git+https://github.com/kkonradpl/wireless-info-icon/")
md5sums=('SKIP')
_gitname="wireless-info-icon"

prepare () {
  cd "$srcdir/$_gitname"
  git submodule init
  git submodule update
}

pkgver() {
  cd "$srcdir/$_gitname"
  git show -s --format="%ci" HEAD | sed -e 's/-//g' -e 's/ .*//'
}

build() {
  cd "$srcdir/$_gitname/build"
  cmake .. -GNinja -Wall -DCMAKE_INSTALL_PREFIX='/usr'
  ninja
}

package() {
  cd "$srcdir/$_gitname/build"
  DESTDIR="$pkgdir" ninja install
}