diff options
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 31 | ||||
-rw-r--r-- | patch | 14 |
3 files changed, 27 insertions, 31 deletions
@@ -1,16 +1,17 @@ +# Generated by mksrcinfo v8 +# Sun Dec 20 00:25:50 UTC 2020 pkgbase = pipemeter pkgdesc = A command line utility that displays the speed and, if possible, progress, of data moving from its input to its output. - pkgver = 1.1.3 - pkgrel = 3 + pkgver = 1.1.4 + pkgrel = 1 url = http://spamaps.org/pipemeter.php arch = i686 arch = x86_64 license = GPL2 makedepends = patch - source = http://spamaps.org/files/pipemeter/pipemeter-1.1.3.tar.gz - source = patch - sha256sums = 1ff952cb2127476ca9879f4b28fb92d6dabb0cc02db41f657025f7782fd50aaf - sha256sums = 259b34d99a7c11ef073e3de00fab8c9dbbebabde3141cedb026cf9d512faab31 + source = https://launchpad.net/pipemeter/trunk/1.1.4/+download/pipemeter-1.1.4.tar.gz + md5sums = 6884e1a6db19ecbee5f2aabde9fd6a94 + sha256sums = dfdea37fcc236c32cb4739665d13cff56c3e46d3b28eed5d96e62a565472474a pkgname = pipemeter @@ -6,35 +6,44 @@ set -u pkgname='pipemeter' -pkgver='1.1.3' -pkgrel='3' +pkgver='1.1.4' +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' -makedepends=('patch') license=('GPL2') -source=("http://spamaps.org/files/pipemeter/${pkgname}-${pkgver}.tar.gz" 'patch') -sha256sums=('1ff952cb2127476ca9879f4b28fb92d6dabb0cc02db41f657025f7782fd50aaf' - '259b34d99a7c11ef073e3de00fab8c9dbbebabde3141cedb026cf9d512faab31') +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=('6884e1a6db19ecbee5f2aabde9fd6a94') +sha256sums=('dfdea37fcc236c32cb4739665d13cff56c3e46d3b28eed5d96e62a565472474a') prepare() { set -u - cd "${srcdir}/${pkgname}-${pkgver}" - ./configure --prefix='/usr' - patch -uN -i "${srcdir}/patch" + 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}/${pkgname}-${pkgver}" + cd "${_srcdir}" + if [ ! -s 'Makefile' ]; then + ./configure --prefix='/usr' + fi make set +u } package() { set -u - cd "${srcdir}/${pkgname}-${pkgver}" + cd "${_srcdir}" make DESTDIR="${pkgdir}" install set +u } diff --git a/patch b/patch deleted file mode 100644 index 7afcf8bae265..000000000000 --- a/patch +++ /dev/null @@ -1,14 +0,0 @@ ---- Makefile 2010-09-15 00:08:25.350002524 -0500 -+++ Makefile-new 2010-09-15 00:10:01.210002523 -0500 -@@ -24,8 +24,9 @@ - - - install: pipemeter pipemeter.1 -- install -p -s pipemeter $(PREFIX)/bin -- install -p pipemeter.1 $(PREFIX)/man/man1 -+ install -d $(DESTDIR)$(PREFIX)/bin $(DESTDIR)$(PREFIX)/share/man/man1 -+ install -p -s pipemeter $(DESTDIR)$(PREFIX)/bin/ -+ install -p pipemeter.1 $(DESTDIR)$(PREFIX)/share/man/man1/ - - dist: pipemeter - sh pkgpipemeter.sh |