diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-07-11 06:24:10 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-07-11 06:24:10 +0000 |
commit | 7f81db06d38fefa163e3121e9935701a59ecceab (patch) | |
tree | 772c32853af4d9e9143a2f244cd65feffcabf7a8 /main/mtr/APKBUILD | |
parent | 6e6ccfabbc080151a7e27b446cb337e0b57c7b56 (diff) | |
download | aports-7f81db06d38fefa163e3121e9935701a59ecceab.tar.bz2 aports-7f81db06d38fefa163e3121e9935701a59ecceab.tar.xz |
main/mtr: moved from testing
Diffstat (limited to 'main/mtr/APKBUILD')
-rw-r--r-- | main/mtr/APKBUILD | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/main/mtr/APKBUILD b/main/mtr/APKBUILD new file mode 100644 index 0000000000..4e2da61f36 --- /dev/null +++ b/main/mtr/APKBUILD @@ -0,0 +1,75 @@ +# Contributor: John Keith Hohm <john@hohm.net> +# Maintainer: +pkgname=mtr +pkgver=0.82 +pkgrel=1 +pkgdesc="Full screen ncurses traceroute tool" +url="http://www.bitwizard.nl/mtr/" +arch="all" +license="GPL" +depends="ncurses" +depends_dev="ncurses-dev" +makedepends="$depends_dev autoconf automake gtk+2.0-dev" +install="" +subpackages="$pkgname-doc $pkgname-gtk" +source="ftp://ftp.bitwizard.nl/$pkgname/$pkgname-$pkgver.tar.gz + 0001-dns-allow-disable-dns-during-compile-time.patch + mtr-gtk.desktop + " + +_builddir="$srcdir/$pkgname-$pkgver" +prepare() { + local i + cd "$_builddir" + mkdir mtr curses gtk + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done + aclocal && touch ChangeLog && autoconf && automake --add-missing +} + +build() { + cd "$_builddir" + cd "$_builddir"/curses + ../configure --prefix=/usr \ + --disable-dns \ + --without-gtk \ + || return 1 + make || return 1 + + cd "$_builddir"/gtk + ../configure --prefix=/usr \ + --disable-dns \ + --with-gtk \ + --program-suffix=-gtk \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir"/curses + make DESTDIR="$pkgdir" install || return 1 + cd "$_builddir"/gtk + make DESTDIR="$pkgdir" install || return 1 + install -D -m 644 "$srcdir"/mtr-gtk.desktop \ + "$pkgdir"/usr/share/applications/mtr-gtk.desktop \ + || return 1 + install -D -m 644 "$_builddir"/img/mtr_icon.xpm \ + "$pkgdir"/usr/share/pixmaps/mtr_icon.xpm || return 1 +} + +gtk() { + pkgdesc="The GTK+ interface for mtr" + mkdir -p "$subpkgdir"/usr/sbin \ + "$subpkgdir"/usr/share + mv "$pkgdir"/usr/sbin/mtr-gtk "$subpkgdir"/usr/sbin/ + mv "$pkgdir"/usr/share/applications "$subpkgdir"/usr/share/ + mv "$pkgdir"/usr/share/pixmaps "$subpkgdir"/usr/share/ + +} + +md5sums="10601ea543fda3e51545c4bce195b64c mtr-0.82.tar.gz +ed4af88ccd422ba41f0c17268878cf4f 0001-dns-allow-disable-dns-during-compile-time.patch +d99a6f7bcef835bfc04af2b8c875123d mtr-gtk.desktop" |