summaryrefslogtreecommitdiff
path: root/community/netwatch
diff options
context:
space:
mode:
Diffstat (limited to 'community/netwatch')
-rw-r--r--community/netwatch/PKGBUILD14
1 files changed, 10 insertions, 4 deletions
diff --git a/community/netwatch/PKGBUILD b/community/netwatch/PKGBUILD
index 4bbe25890..6f28dae6d 100644
--- a/community/netwatch/PKGBUILD
+++ b/community/netwatch/PKGBUILD
@@ -1,9 +1,9 @@
-# $Id: PKGBUILD 66253 2012-02-23 05:25:17Z spupykin $
+# $Id: PKGBUILD 109971 2014-04-22 15:47:18Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=netwatch
pkgver=1.3.0
-pkgrel=3
+pkgrel=4
pkgdesc="monitor network connections"
arch=(i686 x86_64)
url="http://www.slctech.org/~mackay/NETWATCH/netwatch.html"
@@ -13,13 +13,19 @@ depends=(ncurses)
source=(http://www.slctech.org/~mackay/NETWATCH/netwatch-$pkgver-1.tgz)
md5sums=('9168c20c1984e9d126d1a0ec1eb0c1d3')
-build() {
+prepare() {
cd "$srcdir/$pkgname-$pkgver"
+ sed -i 's|${CC-cc} |${CC-cc} -O2 |g' configure
+}
- unset CFLAGS
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
./configure --prefix=/usr
make
+}
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
install -D -m0755 netwatch $pkgdir/usr/bin/netwatch
install -D -m0755 netresolv $pkgdir/usr/bin/netresolv
install -D -m0644 netwatch.1 $pkgdir/usr/share/man/man1/netwatch.1