blob: 664ff91b733d4f17efd9028f454defc4263233fc (
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
37
38
39
40
41
42
43
44
45
46
47
48
|
# $Id$
# Maintainer: Ido Rosen <ido@kernel.org>
# Contributor: Maxime Gauduin <alucryd@gmail.com>
# Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
#
# NOTE: To request changes to this package, please submit a pull request
# to the GitHub repository at https://github.com/ido/packages-archlinux
# Otherwise, open a GitHub issue. Thank you! -Ido
#
pkgname="bmon-git"
pkgver=3.2.0.gd47fffc
pkgrel=1
pkgdesc="Portable bandwidth monitor and rate estimator"
arch=('i686' 'x86_64')
url="http://people.suug.ch/~tgr/bmon/"
license=('MIT')
depends=('confuse' 'ncurses')
makedepends=()
provides=("${pkgname%-*}")
conflicts=("${pkgname%-*}")
source=('git+https://github.com/tgraf/bmon.git')
sha512sums=('SKIP')
pkgver() {
cd "${pkgname%-*}"
printf "%s" "$(git describe --long --tags | sed 's/v//; s/-/./g')"
}
build() {
cd "${pkgname%-*}"
./autogen.sh
./configure --prefix=/usr --sysconfdir=/etc --disable-asound
make
}
package() {
cd "${pkgname%-*}"
make DESTDIR="${pkgdir}" install
install -dm 755 "${pkgdir}/usr/share/doc/${pkgname%-*}"
install -m 644 ChangeLog LICENSE "${pkgdir}/usr/share/doc/${pkgname%-*}/"
install -dm 755 "${pkgdir}/usr/share/licenses/${pkgname}"
ln -s "/usr/share/doc/${pkgname-*}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/"
}
|