morphoj: fix java ver and fix

This commit is contained in:
Kuoi 2022-11-30 23:03:27 +08:00
parent 2fc039cda4
commit 8368c807d1
3 changed files with 9 additions and 16 deletions

View file

@ -1,14 +1,11 @@
# Maintainer: Malacology <guoyizhang at malacology dot net>
# Contributor: Malacology <guoyizhang at malacology dot net>
pkgname=morphoj
pkgver=1.08.0
pkgrel=1
pkgrel=2
pkgdesc="MorphoJ is an integrated program package for doing geometric morphometrics. https://doi.org/10.1111/j.1755-0998.2010.02924.x"
arch=('x86_64')
depends=(
'java-runtime'
)
depends=('java-runtime=11')
url="https://morphometrics.uk/MorphoJ_page.html"
license=('Apache License version 2')
source=("https://morphometrics.uk/MorphoJ_stuff/download.php?get=MorphoJ-installer_Unix_Linux.jar" "MorphoJ.desktop" "MorphoJ")

View file

@ -1,11 +0,0 @@
#!/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()
update_aur_repo()

View file

@ -2,6 +2,13 @@ build_prefix: extra-x86_64
maintainers:
- github: starsareintherose
email: kuoi@bioarchlinux.org
pre_build_script: |
update_pkgver_and_pkgrel(_G.newver.lstrip('v'))
run_cmd(['updpkgsums'])
post_build_script: |
git_add_files('PKGBUILD')
git_commit()
update_aur_repo()
update_on:
- source: cmd
cmd: w3m -dump https://morphometrics.uk/MorphoJ_guide/changelog.htm |grep -o 'Version [0-9].[0-9]\+\w\|Version [0-9].[0-9]\+.[0-9]\+' | head -n1 | cut -d' ' -f2