summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1c6f4c84782cc111778aa9f71159cd3e5059ab25 (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
# Maintainer: awe00 < awe00 AT hotmail DOT fr>
# Contributor: Ondřej Hlavatý <ohlavaty at redhat dot com>
pkgname=plotnetcfg-git
pkgver=v0.4.1.r121.g6a3074d
pkgrel=1
pkgdesc="A tool that scans networking configuration on the machine and plots a diagram of the configuration hierarchy"
arch=('i686' 'x86_64')
url="https://github.com/jbenc/plotnetcfg"
license=('GPL2')
depends=('jansson>=2.3')
makedepends=('git')
provides=('plotnetcfg')
conflicts=('plotnetcfg')
source=("git+https://github.com/jbenc/plotnetcfg" "plotnetcfg-git.patch")
md5sums=('SKIP' '2b10c6f12eb07338b57b6ad874106713')
_gitrepo=plotnetcfg

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

prepare() {
	cd "$_gitrepo"
	patch -p1 <../plotnetcfg-git.patch
}

build() {
  cd "$_gitrepo"
  make CC=gcc
}

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