add spread3

This commit is contained in:
starsareintherose 2021-11-02 21:21:05 +00:00
parent f4f2b19530
commit 4da3df5606
4 changed files with 65 additions and 0 deletions

28
spread3/PKGBUILD Normal file
View file

@ -0,0 +1,28 @@
# Maintainer: Malacology <guoyizhang at malacology dot com>
# Contributor: Malacology <guoyizhang at malacology dot com>
pkgname=spread3
pkgver=0.9.6
_pkgver=0-9-6
pkgrel=1
depends=(
'jre-openjdk-headless'
'jre-openjdk'
'jdk-openjdk'
'openjdk-doc'
'openjdk-src'
)
pkgdesc="a user-friendly application to analyze and visualize pathogen phylodynamic reconstructions resulting from Bayesian inference of sequence and trait evolutionary processes"
arch=('x86_64')
url="https://rega.kuleuven.be/cev/ecv/software/SpreaD3"
license=('custom')
source=("https://rega.kuleuven.be/cev/ecv/software/${pkgname}_files/${pkgname}-v${_pkgver}.jar" "${pkgname}.desktop")
sha256sums=('4021b6dea480bec88c17666088c47f3ec1135c8f6ea7d9bb6cc21639ffc7956f'
'c2d59b208dc6c334ea67ac8d557350c6e41a6d8d3b10d912ac402b7d1c2229d1')
package() {
install -dm755 "$pkgdir"/usr/share/{applications,${pkgname}}
install -m 755 ${srcdir}/*.desktop ${pkgdir}/usr/share/applications
install -m 755 ${srcdir}/gui/icons/spread.png ${pkgdir}/usr/share/${pkgname}
install -m 755 ${srcdir}/${pkgname}-v${_pkgver}.jar ${pkgdir}/usr/share/${pkgname}/${pkgname}.jar
}

10
spread3/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()

8
spread3/lilac.yaml Normal file
View file

@ -0,0 +1,8 @@
build_prefix: extra-x86_64
maintainers:
- github: starsareintherose
email: starsareintherose@outlook.com
update_on:
- source: regex
url: https://rega.kuleuven.be/cev/ecv/software/spread3_files/
regex: spreaD3(\s+v\d+.\d+.\d+)

19
spread3/spread3.desktop Normal file
View file

@ -0,0 +1,19 @@
[Desktop Entry]
Categories=
Encoding=UTF-8
Exec=java -jar /usr/share/spread3/spread3.jar
GenericName=
GenericName[zh]=
Icon=/usr/share/spread3/spread.png
MimeType=
Name=SPREAD3
Name[zh]=SPREAD3
ServiceTypes=
SwallowExec=
SwallowTitle=
Terminal=false
TerminalOptions=
Type=Application
X-KDE-SubstituteUID=false
X-KDE-Username=root