~ubuntu-branches/ubuntu/utopic/accessodf/utopic

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Sebastian Humenda
  • Date: 2012-04-09 11:21:13 UTC
  • Revision ID: package-import@ubuntu.com-20120409112113-huzjydidped86kce
Tags: 0.1-1
Initial release, packaged as a dependency for odt2braille. (Closes: #668144)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# -*- makefile -*-
 
3
 
 
4
SRC_PACKAGE = accessodf
 
5
SRC_VERSION = 0.1
 
6
TARBALL = $(SRC_PACKAGE)_$(SRC_VERSION).orig.tar.gz
 
7
.PHONY: get-orig-source
 
8
 
 
9
# Uncomment this to turn on verbose mode.
 
10
#export DH_VERBOSE=1
 
11
 
 
12
%:
 
13
        dh $@ 
 
14
 
 
15
override_dh_auto_clean:
 
16
        -rm -rf dist
 
17
        -rm -rf build
 
18
 
 
19
override_dh_auto_build:
 
20
        ant -Don-debian=True uno-package
 
21
 
 
22
get-orig-source:
 
23
        rm -rf get-orig-source $(TARBALL)
 
24
        mkdir get-orig-source
 
25
        hg clone http://hg.code.sf.net/p/accessodf/code \
 
26
                get-orig-source/$(SRC_PACKAGE)-$(SRC_VERSION).orig
 
27
        # Remove $SRC/lib and $SRC/ant-build/resources, because it's not necessary in Debian, dependencies are in Debian itself available
 
28
        rm -rf get-orig-source/$(SRC_PACKAGE)-$(SRC_VERSION).orig/lib
 
29
        # remove .hg
 
30
        rm -rf get-orig-source/$(SRC_PACKAGE)-$(SRC_VERSION).orig/.hg
 
31
        
 
32
        GZIP='--best --no-name' tar czf $(TARBALL) -C get-orig-source $(SRC_PACKAGE)-$(SRC_VERSION).orig
 
33
        rm -rf get-orig-source
 
34
        mv $(TARBALL) ..
 
35