1 # Contributor: Andreas Wagner <A dot Wagner at stud dot uni-frankfurt dot de>
6 pkgdesc="This tool allows to mesure how a file grows, network transfer, disk free, memory usage, stdin flux, etc. \
7 It supports ETA and progressbar output too. (Current Development Snapshot)"
9 url="http://nopcode.org/blog/mesure.html"
12 makedepends=(coreutils tar mercurial)
19 _hgroot="http://hg.youterm.com/"
25 [ -d ${_hgrepo}-build ] && rm -rf ${_hgrepo}-build
27 if [ -d ${_hgrepo} ]; then
30 cd ${startdir}/src/${_hgrepo}
31 msg "Starting pull..."
32 hg pull -u || return 1
35 msg "Starting clone..."
36 hg clone ${_hgroot}${_hgrepo} || return 1
37 cd ${startdir}/src/${_hgrepo}
40 msg "Starting clone..."
41 hg clone ${_hgroot}${_hgrepo} || return 1
42 cd ${startdir}/src/${_hgrepo}
44 msg "Mercurial checkout done or server timeout"
46 cp -a ${startdir}/src/${_hgrepo} ${startdir}/src/${_hgrepo}-build
47 cd ${startdir}/src/${_hgrepo}-build
49 ./configure --prefix=/usr --install=/bin/install || return 1
52 install -D -s src/mesure $startdir/pkg/usr/bin/mesure
53 install -D -m 644 doc/mesure.1 $startdir/pkg/usr/share/man/man1/mesure.1
54 install -D -m 644 doc/mesure.txt $startdir/pkg/usr/share/doc/mesure/mesure.txt
55 install -D -m 755 doc/mesure.wmii $startdir/pkg/usr/share/doc/mesure/mesure.wmii
59 # vim:set ts=2 sw=2 et: