bio-tbtools: add package

replace tbtools(for biology) to bio-tbtools, to avoid conflicting to extra/tbtools which for Thunder Bolt
This commit is contained in:
Kiri 2024-07-26 11:57:31 +00:00 committed by GitHub
parent c2808494ee
commit cf9e2fa0a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 55 additions and 0 deletions

View file

@ -0,0 +1,42 @@
# Maintainer: Kiri <kiri@vern.cc>
# Contributor: wangzhichao <wangzhichao1990@126.com>
pkgname=bio-tbtools
_pkgname=tbtools
pkgver=2.106
pkgrel=1
epoch=1
pkgdesc='GUI/CommandLine Tool Box for biologistists to utilize NGS data. \
https://doi.org/10.1016/j.molp.2023.09.010'
arch=('x86_64')
url='https://github.com/CJ-Chen/TBtools-II'
license=('unknown')
depends=('java-runtime>=11'
'bash')
makedepends=('unzip'
'gendesk')
optdepends=('blast+: BLAST support'
'diamond: quick blast(needed in quick MCScanx scan) support'
'mcscanx: collinear scan support'
'hmmer: HMM Search support'
'muscle: align support'
'trimal: large scale align support'
'iqtree: maximum likelihood phylogenomic tree support'
'kaks_calculator: kaks calculate support')
source=("https://github.com/CJ-Chen/TBtools-II/releases/download/${pkgver}/TBtools_JRE1.6.jar")
sha256sums=('62047368b209763ed91c31910217c4292ed603e2dfdbc23f5949bfbda8003195')
prepare() {
# generate /usr/bin file
printf '#!/usr/bin/sh\nexec java -jar /usr/share/bio-tbtools/tbtools*.jar "$@"\n'>${srcdir}/${_pkgname}
# generate desk entry
gendesk -f -n --pkgname "${_pkgname}" --pkgdesc "${pkgdesc}" --exec="${_pkgname}" --name="${_pkgname}" --categories="Science"
}
package() {
install -Dm 755 ${srcdir}/${_pkgname} ${pkgdir}/usr/bin/${_pkgname}
install -Dm 644 ${srcdir}/${_pkgname}.desktop ${pkgdir}/usr/share/applications/${_pkgname}.desktop
install -Dm 755 ${srcdir}/TBtools*.jar ${pkgdir}/usr/share/${pkgname}/${_pkgname}.jar
install -Dm 644 ${srcdir}/Icons/TBtoolsLogo.png ${pkgdir}/usr/share/icons/hicolor/720x720/apps/${_pkgname}.png
install -Dm 644 ${srcdir}/Icons/TBtoolsLogo16x16.png ${pkgdir}/usr/share/icons/hicolor/16x16/apps/${_pkgname}.png
}

View file

@ -0,0 +1,13 @@
maintainers:
- github: kiri2002
email: kiri@vern.cc
build_prefix: extra-x86_64
pre_build_script: |
update_pkgver_and_pkgrel(_G.newver.lstrip('v'))
post_build_script: |
git_pkgbuild_commit()
update_aur_repo()
update_on:
- source: github
github: CJ-Chen/TBtools-II
use_max_tag: true