diff --git a/BioArchLinux/bio-tbtools/PKGBUILD b/BioArchLinux/bio-tbtools/PKGBUILD new file mode 100644 index 0000000000..b539577d9b --- /dev/null +++ b/BioArchLinux/bio-tbtools/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: Kiri +# Contributor: wangzhichao + +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 +} diff --git a/BioArchLinux/bio-tbtools/lilac.yaml b/BioArchLinux/bio-tbtools/lilac.yaml new file mode 100644 index 0000000000..3d4c63de6f --- /dev/null +++ b/BioArchLinux/bio-tbtools/lilac.yaml @@ -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