Package Details: libreoffice-impress-templates 2.2-4

Git Clone URL: https://aur.archlinux.org/libreoffice-impress-templates.git (read-only, click to copy)
Package Base: libreoffice-impress-templates
Description: Freely-licensed LibreOffice Impress templates
Upstream URL: https://dohliam.github.io/libreoffice-impress-templates
Licenses: MIT
Submitter: Louis
Maintainer: Louis
Last Packager: Louis
Votes: 19
Popularity: 0.056637
First Submitted: 2017-02-02 19:44 (UTC)
Last Updated: 2020-03-25 21:45 (UTC)

Latest Comments

Louis commented on 2020-03-25 21:47 (UTC)

@antipatico

Should be fixed now.

antipatico commented on 2020-03-25 08:32 (UTC)

@Luis thanks for fixing! If you give id command you will notice that your user has uid 1000 and gid 1000, as I described in my previous answer.

One last minor appoint is that right now the package installs a couple of duplicates in respect of libreoffice standard templates:

antipatico@box:~$ pacman -Ql libreoffice-fresh | grep /usr/lib/libreoffice/share/template/common/presnt/
libreoffice-fresh /usr/lib/libreoffice/share/template/common/presnt/
libreoffice-fresh /usr/lib/libreoffice/share/template/common/presnt/Alizarin.otp
libreoffice-fresh /usr/lib/libreoffice/share/template/common/presnt/Beehive.otp
libreoffice-fresh /usr/lib/libreoffice/share/template/common/presnt/Blue_Curve.otp
libreoffice-fresh /usr/lib/libreoffice/share/template/common/presnt/Blueprint_Plans.otp
libreoffice-fresh /usr/lib/libreoffice/share/template/common/presnt/BrightBlue.otp
libreoffice-fresh /usr/lib/libreoffice/share/template/common/presnt/Classy_Red.otp
libreoffice-fresh /usr/lib/libreoffice/share/template/common/presnt/DNA.otp
libreoffice-fresh /usr/lib/libreoffice/share/template/common/presnt/Focus.otp
libreoffice-fresh /usr/lib/libreoffice/share/template/common/presnt/Forestbird.otp
libreoffice-fresh /usr/lib/libreoffice/share/template/common/presnt/Impress.otp
libreoffice-fresh /usr/lib/libreoffice/share/template/common/presnt/Inspiration.otp
libreoffice-fresh /usr/lib/libreoffice/share/template/common/presnt/Lights.otp
libreoffice-fresh /usr/lib/libreoffice/share/template/common/presnt/LushGreen.otp
libreoffice-fresh /usr/lib/libreoffice/share/template/common/presnt/Metropolis.otp
libreoffice-fresh /usr/lib/libreoffice/share/template/common/presnt/Midnightblue.otp
libreoffice-fresh /usr/lib/libreoffice/share/template/common/presnt/Nature_Illustration.otp
libreoffice-fresh /usr/lib/libreoffice/share/template/common/presnt/Pencil.otp
libreoffice-fresh /usr/lib/libreoffice/share/template/common/presnt/Piano.otp
libreoffice-fresh /usr/lib/libreoffice/share/template/common/presnt/Portfolio.otp
libreoffice-fresh /usr/lib/libreoffice/share/template/common/presnt/Progress.otp
libreoffice-fresh /usr/lib/libreoffice/share/template/common/presnt/Sunset.otp
libreoffice-fresh /usr/lib/libreoffice/share/template/common/presnt/Vintage.otp
libreoffice-fresh /usr/lib/libreoffice/share/template/common/presnt/Vivid.otp

Louis commented on 2020-03-24 21:39 (UTC)

@antipatico

On my system files inside /usr/lib/libreoffice/share/template/common/presnt/ are owned by my own user which is neither good practice.

Anyway thanks for noticing. Fixed.

antipatico commented on 2020-03-24 14:50 (UTC)

This package still has incorrect permissions, since you are directly extracting the tar in the fakeroot, the owner is user having uid 1000, which in most systems is the first human user created. Similarly, the group owner is the gid 1000, which in most systems is the group of the first human user created.

antipatico@box:~$ ls -lah /usr/lib/libreoffice/share/template/common/presnt/yellow.otp
-rw-r--r-- 1 1000 1000 135K Mar 24 15:40 /usr/lib/libreoffice/share/template/common/presnt/yellow.otp

A quick way to fix this issue is by chowning the files to root in the prepare function():

package() {
  msg2 "Extracting the data.tar.xz..."
  bsdtar -xf data.tar.xz -C "$pkgdir/"
  #Fix directory premissions
  find "$pkgdir" -type d -exec chmod 755 '{}' \;
  find "$pkgdir" -type f -exec chmod 644 '{}' \;
  chown root:root -R "$pkgdir"
}

Louis commented on 2017-02-03 08:06 (UTC)

Thanks for noticing twa022. Fixed.

twa022 commented on 2017-02-02 20:23 (UTC)

Could you add these lines to the end of the package function: find "$pkgdir" -type d -exec chmod 755 '{}' \; find "$pkgdir" -type f -exec chmod 644 '{}' \; The directory permissions don't match the filesystem.