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 0000000000..9a98f06de3 Binary files /dev/null and b/tnt/tnt.png differ