From 4e473afb809f3f6fdcde44446a9e27e8b75504ec Mon Sep 17 00:00:00 2001 From: starsareintherose Date: Tue, 2 Nov 2021 21:48:27 +0000 Subject: [PATCH] add tempest --- tempest/PKGBUILD | 25 +++++++++++++++++++++++++ tempest/lilac.py | 10 ++++++++++ tempest/lilac.yaml | 8 ++++++++ tempest/tempest.desktop | 18 ++++++++++++++++++ 4 files changed, 61 insertions(+) create mode 100644 tempest/PKGBUILD create mode 100755 tempest/lilac.py create mode 100644 tempest/lilac.yaml create mode 100644 tempest/tempest.desktop diff --git a/tempest/PKGBUILD b/tempest/PKGBUILD new file mode 100644 index 0000000000..ba0704e81f --- /dev/null +++ b/tempest/PKGBUILD @@ -0,0 +1,25 @@ +# Maintainer: Malacology +# Contributor: Malacology + +pkgname=tempest +pkgver=1.5.3 +pkgrel=1 +depends=( + 'java-runtime' +) +pkgdesc="a tool for investigating the temporal signal and 'clocklikeness' of molecular phylogenies" +arch=('x86_64') +url="http://tree.bio.ed.ac.uk/software/tempest/" +license=('GPL2') +source=("http://tree.bio.ed.ac.uk/download.php?id=102&num=3" "tempest.desktop") +sha256sums=('83e482a7ba946e38606cc3331765db45b4331337d92d030ebeb537e3e16fa44e' + '2af28c04f9d96f046947efeab28c27552be88ac56af0d8f1a0db2e439a228c45') + +package() { + install -dm755 "$pkgdir"/usr/{bin,share/{applications,tempest}} + install -m 755 ${srcdir}/*.desktop ${pkgdir}/usr/share/applications + mv ${srcdir}/TempEst_v${pkgver}/* ${pkgdir}/usr/share/tempest + chmod +x ${pkgdir}/usr/share/tempest/bin/tempest + ln -s /usr/share/tempest/bin/tempest ${pkgdir}/usr/bin/tempest +} + diff --git a/tempest/lilac.py b/tempest/lilac.py new file mode 100755 index 0000000000..fcbff72939 --- /dev/null +++ b/tempest/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/tempest/lilac.yaml b/tempest/lilac.yaml new file mode 100644 index 0000000000..5d9ac143ba --- /dev/null +++ b/tempest/lilac.yaml @@ -0,0 +1,8 @@ +build_prefix: extra-x86_64 +maintainers: + - github: starsareintherose + email: starsareintherose@outlook.com +update_on: + - source: regex + url: http://tree.bio.ed.ac.uk/software/tempest/ + regex: TempEst_v(\d+.\d+.\d).tgz diff --git a/tempest/tempest.desktop b/tempest/tempest.desktop new file mode 100644 index 0000000000..825fb37822 --- /dev/null +++ b/tempest/tempest.desktop @@ -0,0 +1,18 @@ +[Desktop Entry] +Categories= +Encoding=UTF-8 +Exec=java -jar /usr/share/tempest/lib/tempest.jar +GenericName= +GenericName[zh]= +Icon=/usr/share/tempest/images/tempest.png +MimeType= +Name=TempEst +ServiceTypes= +SwallowExec= +SwallowTitle= +Terminal=false +TerminalOptions= +Type=Application +X-KDE-SubstituteUID=false +X-KDE-Username=root +