You are not logged in.

#1 2017-02-15 04:30:56

Francuss
Member
Registered: 2013-05-16
Posts: 54

{SOLVED] Updating AUR package. Was [Install file does not exists]

Hello,

I am trying to install the last release of softmaker office
https://aur.archlinux.org/packages/soft … mments=all

Using the PKGBUILD prepared by treborz for the latest release 763, I managed to create the PKGBUILD file using treborz's script and it seems to work. I also extracted the tar file provided by the company Softmaker that produced the software. But I keep getting an error message:

install file (smoffice2016.install) does not exist or is not a regular file.

Well it is right. I do not have this smoffice2016.install file in the folder. But no idea where I should find or prepare this file.

Any idea?

Last edited by Francuss (2017-02-16 15:47:44)

Offline

#2 2017-02-15 05:21:14

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,842
Website

Re: {SOLVED] Updating AUR package. Was [Install file does not exists]

It's included with the PKGBUILD when you download the snapshot (or checkout the build files with git): https://aur.archlinux.org/cgit/aur.git/ … e-2016-bin

You don't really need it though, it only does things which are handled by pacman hooks, so you can just remove the install file declaration from the PKGBUILD.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2017-02-15 12:30:41

Francuss
Member
Registered: 2013-05-16
Posts: 54

Re: {SOLVED] Updating AUR package. Was [Install file does not exists]

Many thanks WorMzy

after deleting the install file declaration it goes a little bit forward, but gives other different errors:

error: target not found: lib32-libxmu
error: target not found: lib32-libidn
error: target not found: lib32-libgl
error: target not found: lib32-libxrandr


To try to understand what happens, tried

sudo pacman -S lib32-libxmu

but again got

error: target not found: lib32-libxmu

Well I understand very little of all that. For example after extracting the software developer tar file, I found other compressed files inside and do not know if PKGBUILD expects me to extract that too or better leave it as it is.

Anyway, since the software developer provides also a rpm file, I wonder if it may be easier/safer to use rpmextract. I never tried it, but the name looks straightforward :-)

Offline

#4 2017-02-15 12:33:13

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: {SOLVED] Updating AUR package. Was [Install file does not exists]

You need to set up the multilib repos to enable installation of lib32 packages.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#5 2017-02-15 13:46:29

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,842
Website

Re: {SOLVED] Updating AUR package. Was [Install file does not exists]

I would advise against using rpmextract to 'install' the rpm. It may seem like a quick workaround, but it will solve nothing (the rpm will likely also require lib32 packages to be installed, or the binaries will not work) while leaving untracked files cluttering up your filesystem. If you see slithery's link regarding enabling multilib support on your system, then try again. If you still have trouble, let us know.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#6 2017-02-15 14:54:05

Francuss
Member
Registered: 2013-05-16
Posts: 54

Re: {SOLVED] Updating AUR package. Was [Install file does not exists]

Ok, many thanks for your kind support

now it was able to install all dependencies :-))

then tried retrieving sources  and it seems it was happy because claimed:

Found softmaker-office-2016-763.tgz

This seems very encouraging :-)

But after that new error:

ERROR: planmaker16 was not found in the build directory and is not a URL

Unfortunately it is right, there is no planmaker16 in the build directory, even after extracting compressed files.

For your knowledge planmaker16 is the name you call to start one of the programs of the suite when it is successfully installed. So this seems a hint that we are close to the end.

Offline

#7 2017-02-15 15:00:14

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: {SOLVED] Updating AUR package. Was [Install file does not exists]

You don't just need the PKGBUILD file from the AUR, you need all of the other relevant files as well...

https://aur.archlinux.org/cgit/aur.git/ … bin.tar.gz


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#8 2017-02-15 15:04:11

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,842
Website

Re: {SOLVED] Updating AUR package. Was [Install file does not exists]

The reason you don't have that file is presumably the same reason why you didn't have the install file -- whatever method you used to obtain the build files, did not obtain them all. I suspect that you simply copied and pasted the PKGBUILD text into a text editor and saved it as PKGBUILD, or else you just downloaded the PKGBUILD by itself. See my link above for the full set of files you should have, and read up on how the AUR works: https://wiki.archlinux.org/index.php/Ar … Repository

EDIT: out-typed by Slithery

Last edited by WorMzy (2017-02-15 15:05:19)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#9 2017-02-15 15:42:53

Francuss
Member
Registered: 2013-05-16
Posts: 54

Re: {SOLVED] Updating AUR package. Was [Install file does not exists]

WorMzy wrote:

The reason you don't have that file is presumably the same reason why you didn't have the install file -- whatever method you used to obtain the build files, did not obtain them all. I suspect that you simply copied and pasted the PKGBUILD text into a text editor and saved it as PKGBUILD, or else you just downloaded the PKGBUILD by itself.

exactly

WorMzy wrote:

See my link above for the full set of files you should have,

Yes, but this is release 757 that has some database problems, so I am trying to install release 763 hoping these problems have been solved.

WorMzy wrote:

yes, I tried to read it all, even if I do not understand all details

Resuming:
what I have of release 763 is a pastebin from treborz that I copied on a text file to create a PKGBUILD and an installer from the software developer that I found here http://www.softmaker.net/down/softmaker … 16-763.tgz

But from your comments I understand it will never work this way, at least having at the helm somebody like me

Offline

#10 2017-02-15 15:54:24

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,842
Website

Re: {SOLVED] Updating AUR package. Was [Install file does not exists]

It is entirely possible that there will be differences between the two versions, and the build files will need to be modified to reflect this, however, it is also equally possible that the old build files will work fine for the new version (with only the necessary changes to $pkgver and $md5sums to use the correct source tarball). The error you are getting is because you are missing build files. Try to get a package built with the old version's build files and work from there.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#11 2017-02-15 15:55:14

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,771

Re: {SOLVED] Updating AUR package. Was [Install file does not exists]


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#12 2017-02-15 21:10:20

Francuss
Member
Registered: 2013-05-16
Posts: 54

Re: {SOLVED] Updating AUR package. Was [Install file does not exists]

WorMzy wrote:

It is entirely possible that there will be differences between the two versions, and the build files will need to be modified to reflect this, however, it is also equally possible that the old build files will work fine for the new version (with only the necessary changes to $pkgver and $md5sums to use the correct source tarball). The error you are getting is because you are missing build files. Try to get a package built with the old version's build files and work from there.

So I tried to copy into the folder the build files from the old version, but it stopped for errors in md5sum and again sha512sum for the source tarball, so corrected the values and reached "starting package()..." step.

but it stopped again here:
gzip: stdin: invalid compressed data--crc error
tar: child returned status 1
tar: Error is not recoverable: exiting now

Is this the end of the road? If hope is lost,  I may try to install the old version 757 which is in the title of the AUR post https://aur.archlinux.org/packages/soft … mments=all
But in this case where am I supposed to find the correct source tarball?

Offline

#13 2017-02-15 21:57:06

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,842
Website

Re: {SOLVED] Updating AUR package. Was [Install file does not exists]

Works for me. Post the PKGBUILD you are using, and the output of

file softmaker-office-2016-763.tgz

EDIT: The md5sum I have is 1d3e7ac1c58f2f08a6e42ad04a1b0cf7 and the sha512 is cb9096211b899fdc9ffa870595d4b4b801f11d1af13fc4b46fe8639a0360d5813098e1e56d76e9a4f3bc02c0bc72e7c1ce17ff84334217ced4bb45b4763afbd5

Last edited by WorMzy (2017-02-15 22:01:52)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#14 2017-02-15 23:02:20

Francuss
Member
Registered: 2013-05-16
Posts: 54

Re: {SOLVED] Updating AUR package. Was [Install file does not exists]

Many many thanks for you kind help

WorMzy wrote:

and the output of

file softmaker-office-2016-763.tgz
 file softmaker-office-2016-763.tgz 
softmaker-office-2016-763.tgz: gzip compressed data, last modified: Sun Dec 11 01:56:16 2016, from Unix
WorMzy wrote:

Works for me. Post the PKGBUILD you are using,

 # Maintainer: jdarch <jda -dot- cloud -plus- archlinux -at- gmail -dot- com>
# Contributors: bepebe, cconrad
# Parts adapted from: Muflone/freeoffice@aur

pkgname=softmaker-office-2016-bin
pkgver=2016.763
pkgrel=1
pkgdesc="Softmaker Office 2016, proprietary office suite; word processing, spreadsheets, presentations"
url="http://softmaker.com"
arch=('x86_64' 'i686')
license=('custom')


depends=('desktop-file-utils' 'shared-mime-info' 'hicolor-icon-theme')
depends_i686=('libxmu' 'libidn' 'libgl' 'libxrandr')
depends_x86_64=('lib32-libxmu' 'lib32-libidn' 'lib32-libgl' 'lib32-libxrandr')

source=("http://www.softmaker.net/down/softmaker-office-${pkgver//./-}.tgz"
        "planmaker16"
        "presentations16"
        "textmaker16"
        "planmaker-2016.desktop"
        "presentations-2016.desktop"
        "textmaker-2016.desktop")
md5sums=('44250fb3d452991be04f6e6d69541c62'
         'a6349cf7ec9495cb13bb7bdcc9fdbd13'
         '57766d7d252f42ce3bcb2ecc28dd97e9'
         '5508d9a7a4750084b104bdb4dd51a1d9'
         '60bab207799f6f92192d158840f3e5aa'
         '86b058133c52201abd98a2594849e77e'
         'b0cb162e83fb4f186b1fb458f12ddc00')
sha512sums=('75fe0560d295ab83822978e71f526cc41580b7eca594c0a75b9ee676d4b1fd563768d775fa8a056e31e66bba6439bf9039a8f6ebf2881486f1b87bde531f4af5'
            '926b18535157563be086d13bc555bfcb80176685f831efe8a263d045808f993c8abff9b5feecebf1923a6957a4e7064876e229fe7ab7b49c4806e5abaac7ed38'
            '44d7c55d69a1de7b665a507808618dc9ac81b8938f73cf63ad74cde6725d151e9322b4b25b48798d9f0c76d955e52de6fb97ef86b1c7c2adea56bc95dcd65c82'
            'e40f7eefb706cf7d6f1956bb6f11c70a7b2cbf9ec3e8acf4dba1dd7d59dca138e2c44e55174f337d7a389f9e07690744e12de75238cdd6004de5a0d62375dc3f'
            '1f8b3c475f4a53fd57e279a68bcf02b8c2dc3c081cae378c5ea009550e7cd09d56c297249a8eb86b9ab770b7683e7427df52cdb98a0acb67bfe55da59962f11f'
            'd347cb1bd87273b87e283a64ea7d78265dbb524f18f783840cb7d560e402acfc4cba1e6d7fb5fae83314c70fea1d47334f9615592021513fd6e3b8ce7550cdeb'
            '94224fb084136441c1855e86247f6882017eab4648928e1bbbc4691b1b50f41b29a0945ab4056c774d1fc0dfb0edcddb6fffea758023de71877f62b1c545289c')

_langvar=`echo $LANG|cut -f 1 -d"_" 2>/dev/null`
case "${_langvar}" in
  de) ;;
  es) ;;
  *) _langvar="en" ;;
esac

package() {
  mkdir -p "${pkgdir}/opt/smoffice2016"
  tar -xzf "${srcdir}/office.tgz" -C "${pkgdir}/opt/smoffice2016"

  mv "${pkgdir}/opt/smoffice2016/usr/lib/dpf" "${pkgdir}/opt/smoffice2016"
  rm -rf "${pkgdir}/opt/smoffice2016/usr"
  ln -s "libdpf.so.2.8.0" "${pkgdir}/opt/smoffice2016/dpf/libdpf.so.2"

  mv "${pkgdir}/opt/smoffice2016/spell/langenscheidt_${_langvar}.thn" "${pkgdir}/opt/smoffice2016/spell/langenscheidt.thn"
  rm "${pkgdir}/opt/smoffice2016/spell/langenscheidt_"*".thn"

  install -d "${pkgdir}/usr/bin"
  install -m 755 -t "${pkgdir}/usr/bin" "${srcdir}/planmaker16"
  install -m 755 -t "${pkgdir}/usr/bin" "${srcdir}/presentations16"
  install -m 755 -t "${pkgdir}/usr/bin" "${srcdir}/textmaker16"
  for size in 16 32 48 64 128
    do
      install -d "${pkgdir}/usr/share/icons/hicolor/${size}x${size}/apps"
      ln -s "/opt/smoffice2016/icons/pml_${size}.png" "${pkgdir}/usr/share/icons/hicolor/${size}x${size}/apps/smoffice2016-planmaker.png"
      ln -s "/opt/smoffice2016/icons/prl_${size}.png" "${pkgdir}/usr/share/icons/hicolor/${size}x${size}/apps/smoffice2016-presentations.png"
      ln -s "/opt/smoffice2016/icons/tml_${size}.png" "${pkgdir}/usr/share/icons/hicolor/${size}x${size}/apps/smoffice2016-textmaker.png"

      install -d "${pkgdir}/usr/share/icons/hicolor/${size}x${size}/mimetypes"
      ln -s "/opt/smoffice2016/icons/pmd_${size}.png" "${pkgdir}/usr/share/icons/hicolor/${size}x${size}/mimetypes/application-x-pmd16.png"
      ln -s "/opt/smoffice2016/icons/prd_${size}.png" "${pkgdir}/usr/share/icons/hicolor/${size}x${size}/mimetypes/application-x-prd16.png"
      ln -s "/opt/smoffice2016/icons/tmd_${size}.png" "${pkgdir}/usr/share/icons/hicolor/${size}x${size}/mimetypes/application-x-tmd16.png"
    done

  install -d "${pkgdir}/usr/share/mime/packages"

  # Set the mime types to use generic icons
  sed "s/icon/generic-icon/g;s/application-x-tmd/x-office-document/g;s/application-x-pmd/x-office-spreadsheet/g;s/application-x-prd/x-office-presentation/g" "${pkgdir}/opt/smoffice2016/mime/softmaker-office-2016.xml" > "${pkgdir}/usr/share/mime/packages/softmaker-office-2016.xml" 
  # The line below would set generic icons for various file types to the Softmaker style, to use it, uncomment it and comment the line above.
  #sed -r "s/icon/generic-icon/g;s/application-x-(tmd|pmd|prd)/&16/g" "${pkgdir}/opt/smoffice2016/mime/softmaker-office-2016.xml" > "${pkgdir}/usr/share/mime/packages/softmaker-office-2016.xml"

  install -d "${pkgdir}/usr/share/applications"
  install -m 644 -t "${pkgdir}/usr/share/applications" "${srcdir}/planmaker-2016.desktop"
  install -m 644 -t "${pkgdir}/usr/share/applications" "${srcdir}/presentations-2016.desktop"
  install -m 644 -t "${pkgdir}/usr/share/applications" "${srcdir}/textmaker-2016.desktop"
}

Offline

#15 2017-02-16 12:15:42

Francuss
Member
Registered: 2013-05-16
Posts: 54

Re: {SOLVED] Updating AUR package. Was [Install file does not exists]

Your values are different from md5sum 44250fb3d452991be04f6e6d69541c62 and
sha512  75fe0560d295ab83822978e71f526cc41580b7eca594c0a75b9ee676d4b1fd563768d775fa8a056e31e66bba6439bf9039a8f6ebf2881486f1b87bde531f4af5, but trying again I found exactly your values. So yesterday I was too tired and did something wrong, I am sorry.

So trying again with the correct values it worked and installed.

SO RESUMING,
the matter is much simpler than what appears:
1. download the file from here http://www.softmaker.net/down/softmaker … 16-763.tgz
2. Copy it into a folder together with the other files you find https://aur.archlinux.org/cgit/aur.git/ … bin.tar.gz
3. Run md5sum and sha512sum on softmaker-office-2016-763.tgz and substitute these  values on the PKGBUILD
4. add multilib repos
5. run $ makepkg -si in that folder

A final question: when the software developer will add a new release, and after repeating the procedure, will I simply install the new one over the old one, or is it better to first uninstall the old one?
Many thanks again to WorMzy without whom it would have been impossible to do that.

Offline

#16 2017-02-16 13:28:50

mis
Member
Registered: 2016-03-16
Posts: 234

Re: {SOLVED] Updating AUR package. Was [Install file does not exists]

Francuss wrote:

A final question: when the software developer will add a new release, and after repeating the procedure, will I simply install the new one over the old one, or is it better to first uninstall the old one?

When you install a new version pacman (makepkg -i calls pacman to install the package) will remove the old one automatically before installing the new one.

Offline

Board footer

Powered by FluxBB