1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
#!/usr/bin/make -f
# -*- makefile -*-
SRC_PACKAGE = accessodf
PACKAGE = $(SRC_PACKAGE)
LIBPACKAGE = lib$(PACKAGE)-java
SRC_VERSION = 0.1.1~b
TARBALL = $(SRC_PACKAGE)_$(SRC_VERSION).orig.tar.gz
.PHONY: get-orig-source
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
%:
dh $@
override_dh_auto_clean:
-rm -rf accessodf-addon/target accessodf-api/target
override_dh_install:
mh_installjar -p$(LIBPACKAGE) -l accessodf-api/pom.xml accessodf-api/target/accessodf-api-0.1.0.jar
mh_installpoms
dh_install
#override_dh_auto_install:
#mkdir -p debian/libreoffice-accessodf/usr/lib/libreoffice/share/extensions/accessodf
#unzip -d debian/libreoffice-accessodf/usr/lib/libreoffice/share/extensions/accessodf/ dist/AccessODF.oxt
#-rm -rf debian/libreoffice-accessodf/usr/lib/libreoffice/share/extensions/accessodf/lib/*
#-rm -rf debian/libreoffice-accessodf/usr/lib/libreoffice/share/extensions/accessodf/accessodf-addon.jar
get-orig-source:
git clone git://git.code.sf.net/p/accessodf/code \
$(SRC_PACKAGE)-$(SRC_VERSION).orig
#cd $(SRC_PACKAGE)-$(SRC_VERSION).orig; \
# git checkout release-0.1.0
# Remove $SRC/lib and $SRC/ant-build/resources, because it's not necessary in Debian, dependencies are in Debian itself available, furthermore some scm-files
rm -rf $(SRC_PACKAGE)-$(SRC_VERSION).orig/lib
rm -rf $(SRC_PACKAGE)-$(SRC_VERSION).orig/.git
rm -rf $(SRC_PACKAGE)-$(SRC_VERSION).orig/.gitignore
rm -rf $(SRC_PACKAGE)-$(SRC_VERSION).orig/.hgignore
tar czf ../$(TARBALL) $(SRC_PACKAGE)-$(SRC_VERSION).orig
rm -rf $(SRC_PACKAGE)-$(SRC_VERSION).orig
|