summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 19aff02badabda7031dcd7573b12c380fc763cc3 (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
49
50
51
52
53
54
55
56
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
# Contributor: Marcin Tydelski <marcin.tydelski@gmail.com>
# Contributor: Siddhartha Das bablu.boy@gmail.com>
pkgname=nutty-git
_app_id=com.github.babluboy.nutty
pkgver=1.2.0.r0.g69331cb
pkgrel=1
pkgdesc="A network utility with a user interface for common command line tools"
arch=('x86_64')
url="https://babluboy.github.io/nutty"
license=('GPL-3.0-or-later')
depends=(
  'granite'
  'iproute2'
  'libgee'
  'libnotify'
  'libxml2'
  'lshw'
  'net-tools'
  'nethogs'
  'nmap'
  'pciutils'
  'polkit'
  'sqlite'
  'traceroute'
  'vnstat'
  'wireless_tools'
)
makedepends=('git' 'meson' 'vala')
checkdepends=('appstream-glib')
optdepends=('cronie: background device monitoring')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
install="${pkgname%-git}.install"
source=('git+https://github.com/babluboy/nutty.git')
sha256sums=('SKIP')

pkgver() {
  cd "${pkgname%-git}"
  git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  arch-meson "${pkgname%-git}" build
  meson compile -C build
}

check() {
  meson test -C build --print-errorlogs || :
}

package() {
  meson install -C build --destdir "$pkgdir"

  ln -s "/usr/bin/${_app_id}" "$pkgdir/usr/bin/${pkgname%-git}"
}