Commit 13b727f6 authored by Jakub Jirutka's avatar Jakub Jirutka

testing/nethogs: modernize abuild

parent 1c0c11a9
......@@ -11,8 +11,7 @@ license="GPL"
makedepends="libpcap-dev linux-headers ncurses-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/raboof/$pkgname/archive/v$pkgver.tar.gz
set-version.patch
"
set-version.patch"
builddir="$srcdir/$pkgname-$pkgver"
build() {
......@@ -22,13 +21,9 @@ build() {
package() {
cd "$builddir"
install -Dm755 src/nethogs "$pkgdir"/usr/sbin/nethogs || return 1
install -Dm755 src/nethogs "$pkgdir"/usr/sbin/nethogs
install -Dm644 doc/nethogs.8 "$pkgdir"/usr/share/man/man8/nethogs.8
}
md5sums="002fd7227d8ed2a8b0fcb0a1b44731bf nethogs-0.8.5.tar.gz
8c00ec8ddaf768bdaa5c7246d32ba123 set-version.patch"
sha256sums="6a9392726feca43228b3f0265379154946ef0544c2ca2cac59ec35a24f469dcc nethogs-0.8.5.tar.gz
f957287746c307153d45e78c6908b59439e201d5830cc7d128cb2ebecdc50ee3 set-version.patch"
sha512sums="a2be81fcebc9925dd8a0fd9f71c6e790206819e0cc5efeeeb0c741baa9fd25ec685a1784b6d331d938cf14381403f9c13d619509d0ffe713ce8786a83a380908 nethogs-0.8.5.tar.gz
2746981a591e3fc93ddf27ccc3bb44e6e6ab5ed8607f39e527add16d90d2db614271cc4b724db8f5483ec1ccf3b2e76c92edc380e6a562240ba143b1efc5da24 set-version.patch"
81d44aea5fa585d80a52f562b308046d6d173e277ab6fdc1e289eda65cfcfbd5bec379c70eb94052a86d8f2e008dc44be3894fca8d74c5b6754753e609422b3e set-version.patch"
--- ./Makefile.orig
+++ ./Makefile
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-export VERSION := $(shell ./determineVersion.sh)
+export VERSION ?= $(shell ./determineVersion.sh)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment