summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4054952873ffc4616b42fd3728c7e3ae99b438ce (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
# Maintainer: gbr <gbr@protonmail.com>
pkgname=gnethogs
pkgver=0.2+6+gbb69c6f
pkgrel=3
pkgdesc='Graphical interface for nethogs using GTK'
arch=('any')
url='https://github.com/mbfoss/gnethogs'
license=('GPL3')
depends=('gtkmm3' 'nethogs')
makedepends=('git' 'intltool' 'libxml2')
_commit=bb69c6f82e059a451174c24a6bb1a21b32173f6c
source=("git+https://github.com/mbfoss/gnethogs.git#commit=$_commit")
sha512sums=('SKIP')
install=gnethogs.install

pkgver() {
  cd "$pkgname"
  git describe --tags | sed 's/^v//g; s/-/+/g'
}

build() {
  cd "$pkgname"
  ./autogen.sh
  ./configure --prefix=/usr
  make
}

package() {
  cd "$pkgname"
  make DESTDIR="$pkgdir" install
}