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
|
#!/usr/bin/make -f
include /usr/share/dpkg/default.mk
%:
dh $@ --with javahelper
override_dh_auto_build:
dh_auto_build
# Now, 4 jars are meant to be created: they are similar to each other but
# do not exactly have the same contents. We design this with the pom.xml file,
# but we don't use it since it creates shaded jars.
cd target/ && mkdir jarsBuild && mkdir modifiedJars && cd jarsBuild && \
jar xf ../artemis-*.jar && \
$(RM) -rf META_INF/ && \
jar cf artemis.jar * && \
mv artemis.jar ../modifiedJars/ && \
cp ../modifiedJars/artemis.jar ../modifiedJars/act.jar && \
$(RM) -rf artemis_sqlmap/ && \
jar cf dnaplotter.jar * && \
mv dnaplotter.jar ../modifiedJars/ && \
cp ../modifiedJars/dnaplotter.jar ../modifiedJars/bamview.jar
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
# EMBOSS_ROOT has to be passed to Maven as an environment variable.
EMBOSS_ROOT="/usr" dh_auto_test
endif
override_dh_auto_clean:
dh_auto_clean
$(RM) images/helix.png
$(RM) -rf target/jarsBuild
$(RM) -rf target/modifiedJars
override_dh_install:
dh_install
# Using imagemagick to convert the icon from gif to png.
mkdir -p debian/$(DEB_SOURCE)/usr/share/icons/hicolor/96x96/apps/
convert src/main/resources/images/helix.gif -resize 96x96\! debian/$(DEB_SOURCE)/usr/share/icons/hicolor/96x96/apps/helix.png
|