You are not logged in.

#126 2018-03-02 15:28:06

markus21
Member
Registered: 2015-08-28
Posts: 26

Re: Debtap - A script to convert .deb packages to Arch Linux packages

I treid to install Marvin Suite from ChemAxon, but it won't intall proberly.

(1/1) Installiere marvin                                                                                                                          [##########################################################################################] 100%
/tmp/alpm_nIEq4w/.INSTALL: Zeile 81: Dateiende beim Suchen nach `"' erreicht.
/tmp/alpm_nIEq4w/.INSTALL: Zeile 91: Syntax Fehler: Unerwartetes Dateiende.
/usr/bin/bash: post_install: Kommando nicht gefunden.
Fehler: Befehl konnte nicht korrekt ausgeführt werden

The .INSTALL script looks like this

post_install() {
	I4J_INSTALL_LOCATION="/opt/chemaxon/marvinsuite"
	cd "$I4J_INSTALL_LOCATION"
	ln -sf "$I4J_INSTALL_LOCATION/MarvinSketch" /usr/bin/
	[Desktop Entry]
	Type=Application
	Name=MarvinSketch
	Exec=/usr/bin/sh \"$I4J_INSTALL_LOCATION/MarvinSketch\"
	Icon=$I4J_INSTALL_LOCATION/.install4j/MarvinSketch.png
	" >> "$I4J_INSTALL_LOCATION/MarvinSketch.desktop"
	chmod +x "$I4J_INSTALL_LOCATION/MarvinSketch.desktop"
	ln -sf "$I4J_INSTALL_LOCATION/MarvinView" /usr/bin/
	[Desktop Entry]
	Type=Application
	Name=MarvinView
	Exec=/usr/bin/sh \"$I4J_INSTALL_LOCATION/MarvinView\"
	Icon=$I4J_INSTALL_LOCATION/.install4j/MarvinView.png
	" >> "$I4J_INSTALL_LOCATION/MarvinView.desktop"
	chmod +x "$I4J_INSTALL_LOCATION/MarvinView.desktop"
	ln -sf "$I4J_INSTALL_LOCATION/bin/molconvert" /usr/bin/
	ln -sf "$I4J_INSTALL_LOCATION/bin/cxcalc" /usr/bin/
	ln -sf "$I4J_INSTALL_LOCATION/bin/cxtrain" /usr/bin/
	ln -sf "$I4J_INSTALL_LOCATION/bin/mview" /usr/bin/
	ln -sf "$I4J_INSTALL_LOCATION/bin/msketch" /usr/bin/
	ln -sf "$I4J_INSTALL_LOCATION/LicenseManager" /usr/bin/
	[Desktop Entry]
	Type=Application
	Name=LicenseManager
	Exec=/usr/bin/sh \"$I4J_INSTALL_LOCATION/LicenseManager\"
	Icon=$I4J_INSTALL_LOCATION/.install4j/LicenseManager.png
	" >> "$I4J_INSTALL_LOCATION/LicenseManager.desktop"
	chmod +x "$I4J_INSTALL_LOCATION/LicenseManager.desktop"
	ln -sf "$I4J_INSTALL_LOCATION/bin/evaluate" /usr/bin/

	if [ -d "$I4J_INSTALL_LOCATION/jre/lib" ]; then
	  old_pwd200=`pwd`
	  cd "$I4J_INSTALL_LOCATION/jre"
	  for pack_file in lib/*.jar.pack
	  do
	    if [ -f "$pack_file" ]; then
	      jar_file=`echo "$pack_file" | awk '{ print substr($0,1,length-5) }'`
	      bin/unpack200 -r "$pack_file" "$jar_file"
	    fi
	  done
	  for pack_file in lib/ext/*.jar.pack
	  do
	    if [ -f "$pack_file" ]; then
	      jar_file=`echo "$pack_file" | awk '{ print substr($0,1,length-5) }'`
	      bin/unpack200 -r "$pack_file" "$jar_file"
	    fi
	  done
	  bin/java -Xshare:dump >/dev/null 2>&1
	  cd "$old_pwd200"
	fi
	cp /opt/chemaxon/marvinsuite/*.desktop /usr/share/applications/
	ln -s /opt/chemaxon/marvinsuite/bin/msketch /usr/bin/msketch
	ln -s /opt/chemaxon/marvinsuite/bin/mview /usr/bin/mview
	ln -s /opt/chemaxon/marvinsuite/bin/molconvert /usr/bin/molconvert
}

post_upgrade() {
	post_install
}

pre_remove() {
	I4J_INSTALL_LOCATION="/opt/chemaxon/marvinsuite"
	cd "$I4J_INSTALL_LOCATION"

	rm "/usr/bin/MarvinSketch" 2>/dev/null
	rm "$I4J_INSTALL_LOCATION/MarvinSketch.desktop"
	rm "/usr/bin/MarvinView" 2>/dev/null
	rm "$I4J_INSTALL_LOCATION/MarvinView.desktop"
	rm "/usr/bin/molconvert" 2>/dev/null
	rm "/usr/bin/cxcalc" 2>/dev/null
	rm "/usr/bin/cxtrain" 2>/dev/null
	rm "/usr/bin/mview" 2>/dev/null
	rm "/usr/bin/msketch" 2>/dev/null
	rm "/usr/bin/LicenseManager" 2>/dev/null
	rm "$I4J_INSTALL_LOCATION/LicenseManager.desktop"
	rm "/usr/bin/evaluate" 2>/dev/null
	rm -Rf "$I4J_INSTALL_LOCATION/jre/lib"
}

post_remove() {
	mkdir -p /opt
	rm -rf /usr/share/applications/Marvin*.desktop
	rm -rf /usr/bin/msketch
	rm -rf /usr/bin/mview
	rm -rf /usr/bin/molconvert
}

What's strange, is that lin 91 is empty. So I don't know whether this has something to do with the "unexpected ending".

Thanks for your input

Offline

#127 2018-04-22 17:47:55

helix
Member
Registered: 2013-02-17
Posts: 174

Re: Debtap - A script to convert .deb packages to Arch Linux packages

Update 3.2.2

Changelog

* Deb packages using control.tar.xz for storing metadata now treated correctly
* Added version option
* Minor changes

Last edited by helix (2018-04-23 17:59:08)

Offline

#128 2020-04-25 21:57:47

helix
Member
Registered: 2013-02-17
Posts: 174

Re: Debtap - A script to convert .deb packages to Arch Linux packages

Update 3.3

Changelog

* Switched compression method from .xz to .zst
* Fixed interpretation of special characters \n and \t during .INSTALL creation
* Improved handling of usr/local in some packages
* Minor bug and typo fixes
* Options have become more simple, making more sense

Offline

Board footer

Powered by FluxBB