summaryrefslogtreecommitdiff
path: root/extra/mtr/PKGBUILD
blob: 8383b1efb9ac2d232993ab457fe1269ac0e76d55 (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
# $Id: PKGBUILD 140175 2011-10-08 12:02:46Z ibiru $
# Maintainer : Ionut Biru <ibiru@archlinux.org>
# Contributor: Douglas Soares de Andrade <douglas@archlinux.org>

pkgbase=mtr
pkgname=(mtr mtr-gtk)
pkgver=0.81
pkgrel=1
arch=('i686' 'x86_64')
license=('GPL')
makedepends=('ncurses' 'gtk2')
source=(ftp://ftp.bitwizard.nl/mtr/${pkgbase}-${pkgver}.tar.gz)
url="http://www.bitwizard.nl/mtr/"
md5sums=('b7a7914f1fc1b5a21ab10bdca44356e1')

build() {
    install -d  "${srcdir}/"{mtr-cli,mtr-gtk}
    cd "${srcdir}/mtr-cli"
    ../${pkgbase}-${pkgver}/configure --prefix=/usr --disable-gtktest --without-gtk
    make

    cd "${srcdir}/mtr-gtk"
    ../${pkgbase}-${pkgver}/configure --prefix=/usr
    make
}

package_mtr() {
    pkgdesc="Combines the functionality of traceroute and ping into one tool (CLI version)"
    depends=('ncurses')
    cd "${srcdir}/mtr-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}")

    cd "${srcdir}/mtr-gtk"
    make DESTDIR="${pkgdir}" install
}