You are not logged in.

#1 2013-03-09 03:24:08

Shingetsu
Member
Registered: 2012-09-15
Posts: 27

getting PKGBUILD to replace files

I pretty much finished a PKGBUILD for a nice wicd theme (http://www.deviantart.com/download/1831 … 310ixo.zip).
However, I ran into the following problem: when I try to install the made package, it complains about files already existing in filesystem.

In order to counter that, I made an install file where I moved the old pixmaps out of the way in pre-install and moved them back post-remove. However, it doesn't appear to work whatsoever.

This is also my 1st PKGBUILD (so it's valuable experience right now).

I searched quite a bit but couldn't find a solution.

PKGBUILD: http://pastebin.com/hVaYUm6c
INSTALL: http://pastebin.com/psgFFDWT

Offline

#2 2013-03-09 04:02:10

tdy
Member
From: Sacremende
Registered: 2008-12-14
Posts: 440

Re: getting PKGBUILD to replace files

Mangling the wicd-gtk files in the .INSTALL file is not the right thing to do.

If /usr/share/pixmaps/wicd is the only location that can be used, you should probably just make a wicd-gtk-faenza package that provides=(wicd-gtk) and conflicts=(wicd-gtk).

Offline

#3 2013-03-09 21:57:53

Shingetsu
Member
Registered: 2012-09-15
Posts: 27

Re: getting PKGBUILD to replace files

tdy wrote:

Mangling the wicd-gtk files in the .INSTALL file is not the right thing to do.

If /usr/share/pixmaps/wicd is the only location that can be used, you should probably just make a wicd-gtk-faenza package that provides=(wicd-gtk) and conflicts=(wicd-gtk).

The problem with this approach is that the package should only provide the new pixmaps for wicd-gtk. Of course, I could make a "new" wicd-gtk that would provide the theme as well, however that approach has the same kind of problems as making a gtk2-zukitwo, gtk2-atolm and like so for every gtk2 theme. A UI shouldn't really be linked to it's backend. In this case, it's the wicd devs' fault for making /usr/share/pixmaps/wicd the only usable location but I'd like to find a solution that doesn't involve redistributing the entire client.

Offline

#4 2013-03-09 22:03:26

tdy
Member
From: Sacremende
Registered: 2008-12-14
Posts: 440

Re: getting PKGBUILD to replace files

Shingetsu wrote:

In this case, it's the wicd devs' fault for making /usr/share/pixmaps/wicd the only usable location but I'd like to find a solution that doesn't involve redistributing the entire client.

This is the whole point. wicd-gtk was not written to be themed in a modular manner, but you're trying to force it to be.

Last edited by tdy (2013-03-09 22:05:41)

Offline

Board footer

Powered by FluxBB