You are not logged in.

#1 2005-06-29 05:58:02

axion
Member
Registered: 2004-08-22
Posts: 11

bwm-ng

I didn't find a package for this anywhere so here's my PKGBUILD.

pkgname=bwm-ng
pkgver=0.5
pkgrel=1
pkgdesc="Console-based bandwidth monitor"
url="http://www.gropp.org"
install=
source=(http://www.gropp.org/bwm-ng/$pkgname-$pkgver.tar.gz)
md5sums=('4c5197527c985dc8b45973dfd00deca0')

build() {
   cd $startdir/src/$pkgname-$pkgver
   ./configure --prefix=/usr/local
   make || return 1
   mkdir -p $startdir/pkg/usr/local/{bin,man/man1}
   strip src/bwm-ng
   cp -p src/bwm-ng $startdir/pkg/usr/local/bin
   cp -p bwm-ng.1 $startdir/pkg/usr/local/man/man1/bwm-ng.1
}

Offline

#2 2005-06-29 08:20:11

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: bwm-ng

Thanks. the preferred way of doing this kind of thing is to put your PKGBUILD in the AUR, and post here to inform the community. Here are the AUR Guidelines, FYI. There's also a useful sticky at the top of the forum.

Have a look at some other PKGBUILDs as well - they're very informative. For instance, the best way to do the install phase is to use make install, as recommended by the developer, but include either a DESTDIR or a prefix declaration. Also, Arch uses /usr, nor /usr/local, so this should work here:

build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr
  make || return 1
  make prefix=$startdir/pkg/usr install
}

Offline

Board footer

Powered by FluxBB