Pmusic 1.8.3

I have upgraded zigbert's great audio player, see forum:
http://www.murga-linux.com/puppy/viewtopic.php?t=31206

The only thing that I changed was one line in 'pinstall.sh' needs relative paths so as to work when the PET is installed in Woof.

Uploaded PET (73KB):
http://distro.ibiblio.org/quirky/pet_packages-common/pmusic-1.8.3.pet


Posted on 5 Aug 2011, 17:47


Comments:

Posted on 11 Aug 2011, 7:26 by zigbert
pmusic pinstall.sh
I wonder, is there a way to make a pinstall script that would work both in woof and when upgrading an already installed Pmusic... or installing to a Puppy without Pmusic?


Sigmund


Posted on 11 Aug 2011, 8:03 by BarryK
Re pinstall.sh script
zigbert,
The pinstall script works in both cases, in Woof and in a running Puppy system.

All you have to know is that you don't put an absolute path, for example instead of /usr/lib/libfile.so, you put usr/lib/libfile.so (or ./usr/lib/libfile.so). This works in both cases.

As far as upgrading an existing Pmusic, usually you don't have to do anything special. But, in case you do, well, you can put anything that you require into pinstall.sh. Note, the script is a post-install script, so acts on the files after they have been installed.

You will notice that I sometimes put a test
if [ "`pwd`" = "/" ];then
...that is when I want pinstall.sh to do something different depending on whether the package is being installed in Woof or a running Puppy. The above test would be true if a running Puppy.



Posted on 11 Aug 2011, 15:17 by zigbert
Re pinstall.sh script
Thank you Barry
I will update my pinstall.sh


Sigmund