~ubuntu-branches/debian/squeeze/qsampler/squeeze

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2010-08-05 13:08:31 UTC
  • Revision ID: james.westby@ubuntu.com-20100805130831-bqrifv7gk69wxrbu
Tags: 0.2.2-2
* Adjust versioned build-dependencies to ease backporter's life.
* Suggests linuxsampler (LP: #36326).
* Update my email address.
* Update Standards-Version to 3.9.1.
* Switch to format 3.0 (quilt):
  - debian/control: Drop quilt build-dependency.
  - debian/rules:
    + Drop DH's quilt add-on.
    + get-orig-source is no longer needed.
    + A bit of cleanup.
  - debian/source/format: Set 3.0 (quilt).
* Add gbp.conf file.
* Add .gitignore file.
* Update debian/copyright.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
3
 
# Path to the debian directory
4
 
DEBIAN_DIR := $(shell echo ${MAKEFILE_LIST} | awk '{print $$1}' | xargs dirname )
5
 
UPSTREAM_VERSION ?=$(shell uscan --dehs | sed -n 's/.*<upstream-version>\(.*\)<\/upstream-version>.*/\1/p')
6
 
PACKAGE=qsampler
7
 
 
8
3
export QT_CFLAGS := $(CFLAGS)
9
4
export QT_CXXFLAGS := $(CXXFLAGS)
10
5
 
11
6
%:
12
 
        dh --with quilt $@
 
7
        dh $@
13
8
 
14
9
override_dh_auto_install:
15
10
        dh_auto_install
16
11
        mv debian/qsampler/usr/share/locale/qsampler_*.qm \
17
12
                debian/qsampler/usr/share/qsampler/
18
13
        rm -rf debian/qsampler/usr/share/locale/
19
 
 
20
 
get-orig-source:
21
 
        cd $(DEBIAN_DIR)/.. && uscan --force-download
22
 
        tar xf ../$(PACKAGE)-$(UPSTREAM_VERSION).tar.gz
23
 
        rm ../$(PACKAGE)-$(UPSTREAM_VERSION).tar.gz
24
 
        tar cf ../$(PACKAGE)_$(UPSTREAM_VERSION).orig.tar \
25
 
        --exclude=debian $(PACKAGE)-$(UPSTREAM_VERSION)
26
 
        gzip -9fn ../$(PACKAGE)_$(UPSTREAM_VERSION).orig.tar
27
 
        rm -r $(PACKAGE)-$(UPSTREAM_VERSION)