updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / netmapr / PKGBUILD
blob8753ee1c016b1cfeb4c15e1581964e423bda84ef
1 # Maintainer: Kevin Piche <kevin@archlinux.org>
2 # Contributor: K. Piche <kpiche@rogers.com>
4 pkgname=netmapr
5 pkgver=1.8c
6 pkgrel=1
7 pkgdesc="A basic network diagramming program with NetViz-style drill-down capabilities"
8 url="http://www.nethack.net/software/netmapr/"
9 source=(http://www.nethack.net/software/netmapr/downloads/$pkgname-$pkgver.tar.gz)
10 depends=('sdl_ttf' 'x-server')
11 md5sums=('4ae03f44f86c9789ee78362446de4378')
13 build() {
14   cd $startdir/src/$pkgname-$pkgver
15   # Fix file locations.
16   sed -e "s@/usr/local/@$startdir/pkg/usr/@g" \
17       -e "s@install -C@install@" Makefile.linux >Makefile
18   sed -e "s@^#include <unistd.h>@/* & */@" \
19       -e "s@/usr/local/@/usr/@g" -i netmapr.c
20   make || return 1
21   make install