4
SRC_PACKAGE = accessodf
6
TARBALL = $(SRC_PACKAGE)_$(SRC_VERSION).orig.tar.gz
7
.PHONY: get-orig-source
9
# Uncomment this to turn on verbose mode.
15
override_dh_auto_clean:
19
override_dh_auto_build:
20
ant -Don-debian=True uno-package
23
rm -rf get-orig-source $(TARBALL)
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
30
rm -rf get-orig-source/$(SRC_PACKAGE)-$(SRC_VERSION).orig/.hg
32
GZIP='--best --no-name' tar czf $(TARBALL) -C get-orig-source $(SRC_PACKAGE)-$(SRC_VERSION).orig
33
rm -rf get-orig-source