Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
build: add netanim
Browse files Browse the repository at this point in the history
    ns-3 network animator

Log: add software name--netanim
  • Loading branch information
wjyrich authored and kamiyadm committed Mar 1, 2024
1 parent e6f4008 commit cba8bce
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 0 deletions.
20 changes: 20 additions & 0 deletions io.github.netanim/linglong.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package:
id: io.github.netanim
name: netanim
version: 3.10.9
kind: app
description: |
ns-3 network animator
runtime:
id: org.deepin.Runtime
version: 23.0.0

source:
kind: git
url: https://gitlab.com/nsnam/netanim.git
commit: 76b401767b3b7e1ea83fe6061bfada02fe592b95
patch: patches/0001-install.patch

build:
kind: qmake
47 changes: 47 additions & 0 deletions io.github.netanim/patches/0001-install.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
From eceb0e3542175848f3f419719ba54ff037152ef6 Mon Sep 17 00:00:00 2001
From: wjyrich <1071633242@qq.com>
Date: Mon, 26 Feb 2024 14:08:14 +0800
Subject: [PATCH] install

---
NetAnim.desktop | 11 +++++++++++
NetAnim.pro | 6 ++++++
2 files changed, 17 insertions(+)
create mode 100644 NetAnim.desktop

diff --git a/NetAnim.desktop b/NetAnim.desktop
new file mode 100644
index 0000000..6049ea6
--- /dev/null
+++ b/NetAnim.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Name=NetAnim
+GenericName=NetAnim
+Type=Application
+Comment=NetAnim is an offline animator based on the Qt toolkit for ns-3. It animates a previously executed simulation using an XML trace file generated during a simulation.
+Icon=netanim-logo
+Exec=NetAnim
+Terminal=false
+StartupNotify=false
+Keywords=netanim;ns3;ns-3
+Categories=Development
\ No newline at end of file
diff --git a/NetAnim.pro b/NetAnim.pro
index 5eab742..a104afd 100644
--- a/NetAnim.pro
+++ b/NetAnim.pro
@@ -160,3 +160,9 @@ macx {
QMAKESPEC = macx-g++
}

+target.path =$$PREFIX/bin
+desktop.files = NetAnim.desktop
+desktop.path = $$PREFIX/share/applications/
+icons.path = $$PREFIX/share/icons
+icons.files = netanim-logo.png
+INSTALLS += target desktop icons
\ No newline at end of file
--
2.33.1

0 comments on commit cba8bce

Please sign in to comment.