From 8615efd22e95675370d5a948b06b68ddcfeb2c28 Mon Sep 17 00:00:00 2001 From: starsareintherose Date: Tue, 2 Nov 2021 21:48:41 +0000 Subject: [PATCH] add tnt --- tnt/PKGBUILD | 29 +++++++++++++++++++++++++++++ tnt/lilac.py | 10 ++++++++++ tnt/lilac.yaml | 8 ++++++++ tnt/tnt.desktop | 18 ++++++++++++++++++ tnt/tnt.png | Bin 0 -> 391 bytes 5 files changed, 65 insertions(+) create mode 100644 tnt/PKGBUILD create mode 100755 tnt/lilac.py create mode 100644 tnt/lilac.yaml create mode 100644 tnt/tnt.desktop create mode 100755 tnt/tnt.png diff --git a/tnt/PKGBUILD b/tnt/PKGBUILD new file mode 100644 index 0000000000..8f26e4392e --- /dev/null +++ b/tnt/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Malacology +# Contributor: Malacology + +pkgname=tnt +pkgver=1.5 +pkgrel=1 +pkgdesc="Tree analysis using New Technology" +arch=('x86_64') +url="http://www.lillo.org.ar/phylogeny/tnt/" +license=('custom') +depends=( + 'wine' + 'wine_gecko' + 'wine-mono' +) +source=("http://www.lillo.org.ar/phylogeny/tnt/tnt-win-no-tax-limit.zip" "tnt.desktop" "tnt.png") +sha256sums=('e3732debc569207320fc39468063eb19b6e6055c10c1d1dd9a646ebff620e4a8' + '963042eaff0fe25ecb25d8d1d3ad227542a8c085124a80f5437505e4871d2661' + '292f95bbcb47bea8eae753123df282e19bc1461a0d0f7c0312e3864656b77da3') + +package() { + install -Dm755 ${srcdir}/tnt.exe ${pkgdir}/usr/share/tnt/tnt.exe + install -D -m 755 ${srcdir}/*.htm "${pkgdir}/usr/share/tnt/" + install -Dm755 ${srcdir}/tnt_scripts.zip ${pkgdir}/usr/share/tnt/tnt_scripts.zip + install -Dm755 ${srcdir}/Tred.ttf ${pkgdir}/usr/share/tnt/Tred.ttf + + install -Dm755 ${srcdir}/tnt.png ${pkgdir}/usr/share/tnt/tnt.png + install -Dm755 ${srcdir}/tnt.desktop ${pkgdir}/usr/share/applications/tnt.desktop +} diff --git a/tnt/lilac.py b/tnt/lilac.py new file mode 100755 index 0000000000..fcbff72939 --- /dev/null +++ b/tnt/lilac.py @@ -0,0 +1,10 @@ +#!/usr/bin/env python3 +from lilaclib import * + +def pre_build(): + update_pkgver_and_pkgrel(_G.newver.lstrip('v')) + run_cmd(['updpkgsums']) + +def post_build(): + git_add_files('PKGBUILD') + git_commit() diff --git a/tnt/lilac.yaml b/tnt/lilac.yaml new file mode 100644 index 0000000000..faa6a3d8aa --- /dev/null +++ b/tnt/lilac.yaml @@ -0,0 +1,8 @@ +build_prefix: multilib +maintainers: + - github: starsareintherose + email: starsareintherose@outlook.com +update_on: + - source: regex + url: http://www.lillo.org.ar/phylogeny/tnt/ + regex: "Menu interface – no taxon limit" diff --git a/tnt/tnt.desktop b/tnt/tnt.desktop new file mode 100644 index 0000000000..3e3f3d0896 --- /dev/null +++ b/tnt/tnt.desktop @@ -0,0 +1,18 @@ +[Desktop Entry] +Categories= +Encoding=UTF-8 +Exec=wine /usr/share/tnt/tnt.exe +GenericName= +GenericName[zh]= +Icon=/usr/share/tnt/tnt.png +MimeType= +Name=TNT +Name[zh]=TNT +ServiceTypes= +SwallowExec= +SwallowTitle= +Terminal=false +TerminalOptions= +Type=Application +X-KDE-SubstituteUID=false +X-KDE-Username=root diff --git a/tnt/tnt.png b/tnt/tnt.png new file mode 100755 index 0000000000000000000000000000000000000000..9a98f06de32c77c1ba7e0aaada61f7c4a2d9f333 GIT binary patch literal 391 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDA1|-9oezpTCwj^(N7a$D;Kb?2i11Zh|kH}&M z20djEW~^9hU&g?|sP5_F7?R=qb{ZpJlL3!wc}d@~v#TzbO*6XWXZ~`5{>qh|jsG9$ z8!nxa5PN-PTBO*CorRy+_pqzY%I30hudYq^TgSKBzmfAtt@Qc_U;bt>X-u5qQWU&A zNczFeZy~Iw@+zEcmrMP6#l*t4Tz<2x{<^)NEIvmdq>5BpvUjCSUfLY7=Wv=|G5G_!6db;|#taD0e0sw;xlfVD~ literal 0 HcmV?d00001