mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
morphoj: change source
This commit is contained in:
parent
a9c14aa931
commit
c8eaef1779
3 changed files with 24 additions and 38 deletions
|
@ -1,3 +0,0 @@
|
||||||
#! /bin/sh
|
|
||||||
# shell script for launching MorphoJ
|
|
||||||
java -Xms128m -Xmx512m -jar /usr/share/morphoj/MorphoJ.jar
|
|
|
@ -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$%
|
|
|
@ -3,20 +3,32 @@
|
||||||
pkgname=morphoj
|
pkgname=morphoj
|
||||||
pkgver=1.08.01
|
pkgver=1.08.01
|
||||||
pkgrel=1
|
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')
|
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"
|
url="https://morphometrics.uk/MorphoJ_page.html"
|
||||||
license=('Apache License version 2')
|
license=('Apache')
|
||||||
source=("https://morphometrics.uk/MorphoJ_stuff/download.php?get=MorphoJ-installer_Unix_Linux.jar" "MorphoJ.desktop" "MorphoJ")
|
source=("https://morphometrics.uk/MorphoJ_stuff/download.php?get=MorphoJ-${pkgver}_amd64.deb")
|
||||||
sha256sums=('73c2555706842eb0a8885c11acce09042feee292a53afe6c9ba74724c6fc5bc4'
|
sha256sums=('bf262f01be579295eeb00f49438a93d82c6dd000bc4bb6899a2febba0a900735')
|
||||||
'8d8446303b264ec7da0d8453d80a4ed4310a36248dbe1b5c6a98b174746263c5'
|
build() {
|
||||||
'06398e7d78d84b6a6a9412379613600fe014cbf2950a0f8aff50e9e90f361165')
|
tar -p -xf data.tar.zst -C "${srcdir}"
|
||||||
|
}
|
||||||
package() {
|
package() {
|
||||||
mkdir -p $pkgdir/usr/{bin,share/$pkgname}
|
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
|
cd $srcdir/opt/morphoj
|
||||||
install -Dm755 $srcdir/MorphoJ.desktop $pkgdir/usr/share/applications/MorphoJ.desktop
|
|
||||||
chmod +x $srcdir/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 $srcdir/MorphoJ $pkgdir/usr/bin/MorphoJ
|
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/
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue