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: 180

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: 180

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

#129 2021-01-15 15:40:36

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

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

Update 3.4

Changelog

* Fixed "PKGBUILD Cannot Be Created if .deb package doesn't contain any usr/bin files" bug
* Fixed bug affecting deb packages containg control witlh lowercase sections ("package", "version" etc.)
* Fixed base-packages file creation
* Added more ready translated packages names

Offline

#130 2021-01-31 06:35:36

chovy
Banned
Registered: 2020-12-29
Posts: 62

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

how do I put on aur? all i get is a .tar.zst file.

Offline

#131 2021-01-31 07:12:50

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

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

You DON'T put it in AUR. If you want to upload something suitable for AUR, generate a PKGBUILD file, then modify it and when it’s done upload it in AUR.

Offline

#132 2022-04-25 06:47:21

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

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

Update 3.5.1

Changelog

* Added support for zst compressed deb packages
* Various bug fixes

Last edited by helix (2022-04-25 07:53:16)

Offline

#133 2023-09-19 03:09:43

HalosGhost
Forum Moderator
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 2,092
Website

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

[Mod Hat]

I split out this post (to the Dustbin) which is unrelated to this topic.

All the best,

-HG

Offline

Board footer

Powered by FluxBB