[arch-commits] Commit in mtr/trunk (PKGBUILD)
Levente Polyak
anthraxx at archlinux.org
Fri Jun 3 22:27:40 UTC 2016
Date: Saturday, June 4, 2016 @ 00:27:39
Author: anthraxx
Revision: 268884
upgpkg: mtr 0.86-3
Modified:
mtr/trunk/PKGBUILD
----------+
PKGBUILD | 52 +++++++++++++++++++++++++++++-----------------------
1 file changed, 29 insertions(+), 23 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-06-03 21:19:09 UTC (rev 268883)
+++ PKGBUILD 2016-06-03 22:27:39 UTC (rev 268884)
@@ -1,42 +1,48 @@
-# $Id$
-# Maintainer : Ionut Biru <ibiru at archlinux.org>
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Ionut Biru <ibiru at archlinux.org>
# Contributor: Douglas Soares de Andrade <douglas at archlinux.org>
pkgbase=mtr
-pkgname=(mtr mtr-gtk)
+pkgname=('mtr' 'mtr-gtk')
pkgver=0.86
-pkgrel=2
+pkgrel=3
+pkgdesc='Combines the functionality of traceroute and ping into one tool'
+url="http://www.bitwizard.nl/mtr/"
arch=('i686' 'x86_64')
-url="http://www.bitwizard.nl/mtr/"
-license=('GPL')
+license=('GPL2')
makedepends=('ncurses' 'gtk2')
-source=(ftp://ftp.bitwizard.nl/mtr/$pkgbase-$pkgver.tar.gz)
-md5sums=('8d63592c9d4579ef20cf491b41843eb2')
+source=(${pkgbase}-${pkgver}.tar.gz::ftp://ftp.bitwizard.nl/mtr/${pkgbase}-${pkgver}.tar.gz)
+sha512sums=('e649825ab77987e369e0cd353a502b31f4aafa54a934467db907cb171af45b11bd0a8725d567d923422f32b886ad272b42151514c71893f0ba947f8d18719583')
+prepare() {
+ cp -ra ${pkgbase}-${pkgver}{,-cli}
+}
+
build() {
- cp -r $pkgbase-$pkgver $pkgbase-cli
- cd mtr-cli
+ (cd ${pkgbase}-${pkgver}-cli
./configure --prefix=/usr --without-gtk --sbindir=/usr/bin
make
-
- cd "$srcdir/$pkgbase-$pkgver"
+ )
+ (cd ${pkgbase}-${pkgver}
./configure --prefix=/usr --sbindir=/usr/bin
make
+ )
}
package_mtr() {
- pkgdesc="Combines the functionality of traceroute and ping into one tool (CLI version)"
- depends=('ncurses')
- cd mtr-cli
- make DESTDIR="$pkgdir" install
+ pkgdesc='Combines the functionality of traceroute and ping into one tool (CLI version)'
+ depends=('ncurses')
+ cd ${pkgbase}-${pkgver}-cli
+ make DESTDIR="${pkgdir}" install
}
package_mtr-gtk() {
- pkgdesc="Combines the functionality of traceroute and ping into one tool (GTK version)"
- depends=('ncurses' "gtk2")
- conflicts=("mtr")
- provides=("mtr=$pkgver")
+ pkgdesc='Combines the functionality of traceroute and ping into one tool (GTK version)'
+ depends=('ncurses' "gtk2")
+ conflicts=('mtr')
+ provides=("mtr=${pkgver}")
+ cd ${pkgbase}-${pkgver}
+ make DESTDIR="${pkgdir}" install
+}
- cd $pkgbase-$pkgver
- make DESTDIR="$pkgdir" install
-}
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list