blob: 5b2744e4441e57ed5d1b0888354b84b4cf3b7d2f (
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
49
50
|
# Maintainer: Chris Severance aur.severach aATt spamgourmet dott com
# Contributor: kfgz <kfgz at interia pl>
# Contributor: Fernando < arch at liquuid dot net >
# Contributor: Damir Perisa <damir dot perisa at bluewin dot ch>
# Contributor: Nathan Owe <ndowens.aur at gmail dot com>
set -u
pkgname='pipemeter'
pkgver='1.1.5'
pkgrel='1'
pkgdesc='A command line utility that displays the speed and, if possible, progress, of data moving from its input to its output.'
arch=('i686' 'x86_64')
url='http://spamaps.org/pipemeter.php'
license=('GPL2')
makedepends=('patch')
#source=("http://spamaps.org/files/pipemeter/${pkgname}-${pkgver}.tar.gz" 'patch')
_srcdir="${pkgname}-${pkgver}"
source=("https://launchpad.net/pipemeter/trunk/${pkgver}/+download/${_srcdir}.tar.gz")
md5sums=('3900d8a848eaed2e9f5bfd6af0491173')
sha256sums=('e470ac5f3e71b5eee1a925d7174a6fa8f0753f2107e067fbca3f383fab2e87d8')
prepare() {
set -u
cd "${_srcdir}"
# make package compatible
sed -e '/\/man\// s:\$(PREFIX)/man:$(PREFIX)/share/man:g' \
-e '#/install / s: \$(PREFIX): -t "$(DESTDIR)"$(PREFIX):g' \
-e '#/install / s:install : install -D :g' \
-e '#/install / s:[a-z0-9]$:&/:g' \
-i 'Makefile.in'
set +u
}
build() {
set -u
cd "${_srcdir}"
if [ ! -s 'Makefile' ]; then
./configure --prefix='/usr'
fi
make
set +u
}
package() {
set -u
cd "${_srcdir}"
make DESTDIR="${pkgdir}" install
set +u
}
set +u
|