You are not logged in.
Pages: 1
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
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
Pages: 1