Rename msosa

This commit is contained in:
2025-09-01 00:04:10 +03:00
parent fa1e02174f
commit 994a100119
5 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
pkgbase = magic-systems-of-systems-architect
pkgdesc = Powerful modeling tool based on the MagicDraw platform by No Magic
pkgver = 2022.2
pkgrel = 1
url = https://docs.nomagic.com/display/MSOSA2022xR2
arch = any
license = custom
makedepends = desktop-file-utils
depends = java-runtime=11
source = local://Magic_Systems_of_Systems_Architect_2022x_Refresh2_unix.sh
source = installer.properties
sha256sums = 2c32231cc6f0eaf5fe33eb62ea811db5684874c499eeec72d6a252db20983e1e
sha256sums = SKIP
pkgname = magic-systems-of-systems-architect

View File

@@ -0,0 +1,7 @@
/*
!/.gitignore
!/.SRCINFO
!/PKGBUILD
!/README.md
!/installer.properties

View File

@@ -0,0 +1,62 @@
# Maintainer: Dominykas Svetikas <dominykas@svetikas.lt>
pkgname='magic-systems-of-systems-architect'
pkgver='2022.2' #2022x Refresh2
pkgrel='1'
pkgdesc='Powerful modeling tool based on the MagicDraw platform by No Magic'
url='https://docs.nomagic.com/display/MSOSA2022xR2'
arch=('any')
license=('custom')
depends=('java-runtime=11')
makedepends=('desktop-file-utils')
source=(
"local://Magic_Systems_of_Systems_Architect_2022x_Refresh2_unix.sh"
"installer.properties"
)
sha256sums=(
'2c32231cc6f0eaf5fe33eb62ea811db5684874c499eeec72d6a252db20983e1e'
'SKIP'
)
build() {
# Fix for "Error: Could not find or load main class com.zerog.lax.LAX"
export JAVA_TOOL_OPTIONS="-Djdk.util.zip.disableZip64ExtraFieldValidation=true"
# Set the JAVA_HOME environment variable
export PATH="/usr/lib/jvm/java-11-openjdk/bin/:$PATH"
# Move every tempdir to the source directory, including the user.home
export JAVA_TOOL_OPTIONS="$JAVA_TOOL_OPTIONS -Djava.io.tmpdir=$srcdir/tmp -Duser.dir=$srcdir/tmp/tmp2 -Duser.home=$srcdir"
# Replace the $BUILD_PATH variable in the installer.properties file
sed -e "s|\$BUILD_PATH|$PWD|" installer.properties > installer.properties.tmp
# Specify the temporary directory for the installer
# https://community.flexera.com/s/article/installanywhere-self-extraction-and-temp-space-requirements
mkdir -p "$srcdir/tmp"
export IATEMPDIR="$srcdir/tmp"
# Create the required directories, otherwise warnings are generated and it fails
mkdir -p "$srcdir/.local/share/applications"
mkdir -p "$srcdir/magic-systems-of-systems-architect/userhome"
./Magic_Systems_of_Systems_Architect_2022x_Refresh2_unix.sh -f "$srcdir/installer.properties.tmp" -i console -l en
# Update the desktop file with the correct path
desktop-file-edit .local/share/applications/*.desktop --set-key=Exec --set-value="magic-systems-of-systems-architect"
desktop-file-edit .local/share/applications/*.desktop --set-key=Icon --set-value="/usr/share/pixmaps/magic-systems-of-systems-architect.ico"
}
package() {
cd "$srcdir/magic-systems-of-systems-architect" || exit 1
# Install the application
install -d $pkgdir/{opt/$pkgname,usr/bin}
cp -a bin certs data help lib manual mdmain.ini modelLibraries openapi plugins profiles samples templates $pkgdir/opt/$pkgname
ln -s /opt/$pkgname/bin/msosa $pkgdir/usr/bin/$pkgname
# TODO: Change some permissions
# Install the desktop file
install -d "${pkgdir}/usr/share/pixmaps"
install -Dm644 $srcdir/.local/share/applications/Magic_Systems_of_Systems_Architect_2022x_Refresh2.desktop $pkgdir/usr/share/applications/$pkgname.desktop
ln -s /opt/$pkgname/bin/msosa.ico "${pkgdir}/usr/share/pixmaps/$pkgname.ico"
}

View File

@@ -0,0 +1,25 @@
You will need to obtain an installation file and put it in the directory with the PKGBUILD file.
Currently broken with chroot builds:
```title="/var/lib/archbuild/extra-x86_64/dominykas-1/build/magic-systems-of-systems-architect/src/magic-systems-of-systems-architect/UninstallerData/Logs/Magic_Systems_of_Systems_Architect_2022x_Refresh2_Install_.log"
Execute Custom Code
class com.nomagic.magicdraw.install.ConfigureLaunchers.install() Unexpected Fatal Error:
java.lang.NoClassDefFoundError: Could not initialize class Flexeraare
at com.zerog.ia.api.priv.InstallPanel.<clinit>(Unknown Source)
at com.nomagic.magicdraw.install.ConfigureLaunchers.writeMemory(ConfigureLaunchers.java:45)
at com.nomagic.magicdraw.install.ConfigureLaunchers.install(ConfigureLaunchers.java:275)
at com.zerog.ia.installer.actions.CustomAction.installSelf(Unknown Source)
at com.zerog.ia.installer.AAMgrBase.an(Unknown Source)
at com.zerog.ia.installer.ConsoleBasedAAMgr.ac(Unknown Source)
at com.zerog.ia.installer.ConsoleBasedAAMgr.runPostInstall(Unknown Source)
at com.zerog.ia.installer.LifeCycleManager.consoleInstallMain(Unknown Source)
at com.zerog.ia.installer.LifeCycleManager.executeApplication(Unknown Source)
at com.zerog.ia.installer.Main.main(Unknown Source)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.zerog.lax.LAX.launch(Unknown Source)
at com.zerog.lax.LAX.main(Unknown Source)
SHUTDOWN REQUESTED
```

View File

@@ -0,0 +1,13 @@
#Choose Java Virtual Machine
#---------------------------
JDK_HOME=/usr/lib/jvm/java-11-openjdk
JAVA_DOT_HOME=/usr/lib/jvm/java-11-openjdk
JAVA_EXECUTABLE=/usr/lib/jvm/java-11-openjdk/bin/java
#Choose Install Folder
#---------------------
USER_INSTALL_DIR=$BUILD_PATH/magic-systems-of-systems-architect
#Choose Link Folder
#------------------
USER_SHORTCUTS=$BUILD_PATH