add treemap

This commit is contained in:
starsareintherose 2021-11-02 21:48:53 +00:00
parent 8615efd22e
commit f91a35e846
7 changed files with 79 additions and 0 deletions

28
treemap/PKGBUILD Normal file
View file

@ -0,0 +1,28 @@
# Maintainer: Malacology <guoyizhang at malacology dot com>
# Contributor: Malacology <guoyizhang at malacology dot com>
pkgname=treemap
pkgver=3b1243
pkgrel=1
pkgdesc="a tool for analysing relationships between evolutionary histories of ecologically linked species"
arch=('x86_64')
url="https://sites.google.com/site/cophylogeny/treemap/"
license=('custom')
makedepends=('wget')
source=("treemap.desktop" "treemap.png")
sha256sums=('dd308f7e4596edef57be9bbbfc7a7088a27f75763feae02e446c9d16518940e5'
'514cbfcb94803808141cc6fae9b58eabfe58ba7a55d5d5f3f1061cd7a154b28e')
depends=(
'jre-openjdk-headless'
'jre-openjdk'
'jdk-openjdk'
'openjdk-doc'
'openjdk-src'
)
package() {
wget "https://sites.google.com/site/cophylogeny/software/TreeMap${pkgver}.jar"
install -dm755 "$pkgdir"/usr/share/{treemap,icons,applications}
install -Dm644 ${srcdir}/TreeMap${pkgver}.jar ${pkgdir}/usr/share/treemap/TreeMap.jar
install -Dm 755 ${srcdir}/*.desktop ${pkgdir}/usr/share/applications
install -Dm 755 ${srcdir}/*.png ${pkgdir}/usr/share/icons
}

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

7
treemap/lilac.yaml Normal file
View file

@ -0,0 +1,7 @@
build_prefix: extra-x86_64
maintainers:
- github: starsareintherose
email: starsareintherose@outlook.com
update_on:
- source: aur
aur: treemap

7
treemap/lilac.yaml.aur Normal file
View file

@ -0,0 +1,7 @@
build_prefix: extra-x86_64
maintainers:
- github: starsareintherose
email: starsareintherose@outlook.com
update_on:
- source: aur
aur: treemap

8
treemap/lilac.yaml.vps 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://sites.google.com/site/cophylogeny/software
regex: TreeMap(\w+).jar

19
treemap/treemap.desktop Normal file
View file

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

BIN
treemap/treemap.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB