Debian install file installing into local dir instead of root dir

Asked by Brian Bentsen

I have a PPA for themes that currently install into /usr/share/themes/ - mainly because I cannot get the install file to install into the local directory. Examples that don't work:
--
themefoldername ${HOME}/.themes/
--
themefoldername"${HOME}/.themes/"
--
themefoldername ~/.themes/
--

I have looked in similar PPAs for a solution but all I have found install into the root directory:
--
themefoldername /usr/share/themes/
--

What syntax does the install file need to place theme folders in the local directory?

Question information

Language:
English Edit question
Status:
Solved
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Solved by:
Brian Bentsen
Solved:
Last query:
Last reply:
Revision history for this message
William Grant (wgrant) said :
#1

Packages are not allowed to touch /home.

Revision history for this message
Brian Bentsen (bimsebasse) said :
#2

OK, that explains the universal root installation procedure, but can I then remove the install file altogether and let a preinst or postinst script handle the package installation?

Revision history for this message
William Grant (wgrant) said :
#3

Packages aren't user-specific, so touching user home directories is forbidden. Which user would you pick?

You'll need to find a system-wide location to put the files in.

Revision history for this message
Brian Bentsen (bimsebasse) said :
#4

The home directory of the user installing the package? It would be an odd scenario where user A installs a package from PPA intended for user B only. But it not being possible (user A installing package into user A ~/.themes/) is also an answer though not one I hoped for :o)

Revision history for this message
William Grant (wgrant) said :
#5

Packages are installed once, system-wide by root, not by a particular user.