releasing package jabref version 2.10~beta3+ds-1
[debian/jabref.git] / debian / rules
1 #!/usr/bin/make -f
2
3 %:
4         dh $@
5
6 override_dh_auto_clean:
7         # ant clean fails if build.xml is not patched
8         $(RM) -r $(CURDIR)/build
9
10 override_dh_auto_build:
11         JAVA_HOME=/usr/lib/jvm/default-java ANT_OPTS=-D"file.encoding=UTF-8" \
12                 dh_auto_build
13         convert -geometry 32x32 src/images/JabRef-icon-48.png build/jabref32.xpm
14         convert -geometry 16x16 src/images/JabRef-icon-48.png build/jabref16.xpm
15
16 override_dh_auto_test:
17         ANT_OPTS=-Dfile.encoding=iso-8859-1 ant compiletest
18
19 override_dh_auto_install:
20         dh_auto_install
21         install -m 755 debian/jabref-wrapper $(CURDIR)/debian/jabref/usr/bin/jabref
22
23 override_dh_installchangelogs:
24         dh_installchangelogs src/txt/CHANGELOG