e0df2923e58b490519c662cd9741a4d1f6758ba7
[debian/jabref.git] / debian / rules
1 #!/usr/bin/make -f
2
3 %:
4         dh $@ --with quilt
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_install:
17         dh_auto_install
18         install -m 755 debian/jabref-wrapper $(CURDIR)/debian/jabref/usr/bin/jabref
19
20 override_dh_installchangelogs:
21         dh_installchangelogs src/txt/CHANGELOG
22
23 get-orig-source:
24         # we use the "--repack" here until svn-upgrade can handle .tar.bz2
25         uscan --verbose --force --rename --repack