Active Topics

 


Reply
Thread Tools
Posts: 353 | Thanked: 263 times | Joined on Dec 2009 @ Finland
#1
Hi,

I am uploading my project (http://talk.maemo.org/showthread.php?t=42420) to extras-devel, and it works fine otherwise, but when I install it from the repo, all files don't get installed.

In scratchbox, I have 2 .wav files in "maetronome-0.0.2/src/" folder, and in my rules file I try to copy the wavs to /opt/maetronome like this (I took some hints from prboom's rules file):
Code:
install: build
        dh_testdir
        dh_testroot
        dh_clean -k
        dh_installdirs

        # Add here commands to install the package into debian/your_appname
        cd builddir && $(MAKE) INSTALL_ROOT=$(CURDIR)/debian/$(APPNAME) install

        # Wavs to /opt/maetronome ????
        mkdir -p $(dest)/opt/maetronome
        dh_installdirs opt/maetronome
        cp ./src/blip.wav $(dest)/opt/maetronome/
        cp ./src/click.wav $(dest)/opt/maetronome/
Autobuilder doesn't have anything bad to say about this, but still the .wavs don't exist after installation of the package (but the folder /opt/maetronome is created anyway). How should I copy the .wavs then?

EDIT: And I think that someone should really improve the quality of the wiki pages about packaging.
 
Posts: 432 | Thanked: 645 times | Joined on Mar 2009
#2
Originally Posted by TNiga View Post
In scratchbox, I have 2 .wav files in "maetronome-0.0.2/src/" folder, and in my rules file I try to copy the wavs to /opt/maetronome like this (I took some hints from prboom's rules file):
Code:
install: build
        dh_testdir
        dh_testroot
        dh_clean -k
        dh_installdirs

        # Add here commands to install the package into debian/your_appname
        cd builddir && $(MAKE) INSTALL_ROOT=$(CURDIR)/debian/$(APPNAME) install

        # Wavs to /opt/maetronome ????
        mkdir -p $(dest)/opt/maetronome
        dh_installdirs opt/maetronome
        cp ./src/blip.wav $(dest)/opt/maetronome/
        cp ./src/click.wav $(dest)/opt/maetronome/
Autobuilder doesn't have anything bad to say about this, but still the .wavs don't exist after installation of the package (but the folder /opt/maetronome is created anyway). How should I copy the .wavs then?
You could specify that in your project-file without changing the debian/rules, like:

Code:
INSTALLS += ... sound

  sound.path = [dir]/maetronome/
  sound.files = *.wav
the [dir] depends on your setup of the project file. That should do it.

Originally Posted by TNiga View Post
EDIT: And I think that someone should really improve the quality of the wiki pages about packaging.
I'm working on a more complex example for Qt. I'll keep you up-to-date.

Daniel

Last edited by danielwilms; 2010-01-28 at 12:05. Reason: clarification
 

The Following 3 Users Say Thank You to danielwilms For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 20:54.