morphoj: change source

This commit is contained in:
Kuoi 2023-10-26 04:54:13 +08:00
parent a9c14aa931
commit c8eaef1779
3 changed files with 24 additions and 38 deletions

View file

@ -1,3 +0,0 @@
#! /bin/sh
# shell script for launching MorphoJ
java -Xms128m -Xmx512m -jar /usr/share/morphoj/MorphoJ.jar

View file

@ -1,23 +0,0 @@
[Desktop Entry]
Categories=
Comment=Click to start MorphoJ
Comment[zh]=Click to start MorphoJ
Encoding=UTF-8
Exec=java -jar /usr/share/morphoj/MorphoJ.jar
GenericName=
GenericName[zh]=
Icon=/usr/share/morphoj/extras/MorphoJ_icon_64.png
MimeType=
Name=MorphoJ
Name[zh]=MorphoJ
ServiceTypes=
SwallowExec=
SwallowTitle=
Terminal=false
TerminalOptions=
Type=Application
X-KDE-SubstituteUID=false
X-KDE-Username=root
# created by com.izforge.izpack.util.os.Unix_Shortcut $Revision$
# $Id$%

View file

@ -3,20 +3,32 @@
pkgname=morphoj
pkgver=1.08.01
pkgrel=1
pkgdesc="MorphoJ is an integrated program package for doing geometric morphometrics. https://doi.org/10.1111/j.1755-0998.2010.02924.x"
pkgdesc="integrated program package for doing geometric morphometrics \
https://doi.org/10.1111/j.1755-0998.2010.02924.x"
arch=('x86_64')
depends=('java-runtime=11')
depends=('java-runtime=17' 'alsa-lib' 'glibc' 'zlib' 'freetype2' 'hicolor-icon-theme')
makedepends=('tar')
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")
sha256sums=('73c2555706842eb0a8885c11acce09042feee292a53afe6c9ba74724c6fc5bc4'
'8d8446303b264ec7da0d8453d80a4ed4310a36248dbe1b5c6a98b174746263c5'
'06398e7d78d84b6a6a9412379613600fe014cbf2950a0f8aff50e9e90f361165')
license=('Apache')
source=("https://morphometrics.uk/MorphoJ_stuff/download.php?get=MorphoJ-${pkgver}_amd64.deb")
sha256sums=('bf262f01be579295eeb00f49438a93d82c6dd000bc4bb6899a2febba0a900735')
build() {
tar -p -xf data.tar.zst -C "${srcdir}"
}
package() {
mkdir -p $pkgdir/usr/{bin,share/$pkgname}
java -DINSTALL_PATH=$pkgdir/usr/share/$pkgname -jar download.php?get=MorphoJ-installer_Unix_Linux.jar -options-system
install -Dm755 $srcdir/MorphoJ.desktop $pkgdir/usr/share/applications/MorphoJ.desktop
chmod +x $srcdir/MorphoJ
install -Dm755 $srcdir/MorphoJ $pkgdir/usr/bin/MorphoJ
cd $srcdir/opt/morphoj
sed -i "s@/opt/morphoj/bin@/usr/bin@g;s@/opt/morphoj/lib/@/usr/share/icons/hicolor/128x128/apps/@g" lib/morphoj-MorphoJ.desktop
install -Dm755 lib/morphoj-MorphoJ.desktop $pkgdir/usr/share/applications/MorphoJ.desktop
rm lib/morphoj-MorphoJ.desktop
install -Dm755 lib/MorphoJ.png $pkgdir/usr/share/icons/hicolor/128x128/apps/MorphoJ.png
rm lib/MorphoJ.png
chmod +x bin/MorphoJ
ln -s /usr/share/morphoj/bin/MorphoJ $pkgdir/usr/bin/MorphoJ
mv bin $pkgdir/usr/share/$pkgname/
mv lib $pkgdir/usr/share/$pkgname/
}