Commit e0cbce73 authored by Ariadne Conill's avatar Ariadne Conill

community/isochronous: new aport

parent e24515b9
# Maintainer: Ariadne Conill <ariadne@dereferenced.org>
pkgname="isochronous"
pkgver="0.1"
pkgrel=0
pkgdesc="isochronous network measurement tools"
url="https://git.networkservice.associates/ahamonic/isochronous"
arch="all"
license="Apache-2.0"
source="https://git.networkservice.associates/ahamonic/isochronous/-/archive/v$pkgver/isochronous-$pkgver.tar.gz
make-install.patch"
builddir="$srcdir/isochronous-v$pkgver"
options="!check"
prepare() {
mv "$srcdir"/isochronous-v$pkgver-* "$srcdir"/isochronous-v$pkgver
default_prepare
}
build() {
make
}
package() {
make DESTDIR="$pkgdir" install
}
sha512sums="03d43b5374cce6a2ec8b8b9d37f43a52f47827cec5159fd9d730011112d9a3573fea2d8779db9a778d87aed925ab265572710645805a4a94f1a64f02aa9c052d isochronous-0.1.tar.gz
5f05b8c4d7d42e0f98f59867953ff99e1501ca8da71ea04697713ec0be9294b19c767fc81953f427eaa711ed2a3e76bd3aaeceaa6876505e8607933133636eba make-install.patch"
From f076d20274415f55645e80b49f76298b2b17d9d6 Mon Sep 17 00:00:00 2001
From: User Detha <detha@jarjar.dnaq.net>
Date: Sat, 28 Mar 2020 10:04:28 +0000
Subject: [PATCH] Add install target
---
Makefile | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/Makefile b/Makefile
index 15266af..bfe1d54 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,11 @@
CFLAGS+=-std=gnu99 -g
LDFLAGS+=-lrt -lm
+
+DESTDIR=
+PREFIX=/usr
+BINDIR=$(PREFIX)/bin
+MANDIR=$(PREFIX)/man
+
PROGS=udpstress isoping isostream
all: $(PROGS)
@@ -13,5 +19,9 @@ isoping: isoping.c
isostream: isostream.c
$(CC) $(CFLAGS) $< -o $@ $(LDFLAGS)
+install: all
+ mkdir -p $(DESTDIR)$(BINDIR)
+ install -m0755 $(PROGS) $(DESTDIR)$(BINDIR)
+
clean:
rm -f $(PROGS)
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