add tnt-cli

This commit is contained in:
starsareintherose 2021-11-14 14:59:18 +00:00
parent 73620b2082
commit 7d23dbb66c
3 changed files with 45 additions and 0 deletions

25
tnt/PKGBUILD Normal file
View file

@ -0,0 +1,25 @@
# Maintainer: Malacology <guoyizhang at malacology dot com>
# Contributor: Malacology <guoyizhang at malacology dot com>
pkgname=tnt
pkgver=1.5
pkgrel=1
pkgdesc="Tree analysis using New Technology"
arch=('x86_64')
url="http://www.lillo.org.ar/phylogeny/tnt/"
provides=('tnt')
license=('custom')
depends=(
'ncurses5-compat-libs'
)
source=("http://www.lillo.org.ar/phylogeny/tnt/tnt64-no-tax-limit.zip")
sha256sums=('67160d8dcde67abc978c00a8cb040b2ccee3877943fa6acd70f81cd59f80bc16')
package () {
cd ${srcdir}
chmod +x tnt
chmod +x xtnt
install -Dm 755 tnt ${pkgdir}/usr/bin/tnt
install -Dm 755 xtnt ${pkgdir}/usr/bin/xtnt
install -Dm 755 Tred.ttf ${pkgdir}/usr/share/fonts/Tred/Tred.ttf
install -Dm 755 tnt.htm ${pkgdir}/usr/share/doc/tnt/tnt.htm
}

10
tnt/lilac.py Executable file
View file

@ -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()

10
tnt/lilac.yaml Normal file
View file

@ -0,0 +1,10 @@
build_prefix: extra-x86_64
maintainers:
- github: starsareintherose
email: starsareintherose@outlook.com
update_on:
- regex: 'last update: (\w+\s\d+,\s\d+)'
source: regex
url: http://www.lillo.org.ar/phylogeny/tnt/
from_pattern: (\w+\s\d+,\s\d+)
to_pattern: (\w+\d+\d+)