3 # Sample debian/rules that uses debhelper.
4 # This file was originally written by Joey Hess and Craig Small.
5 # As a special exception, when this file is copied by dh-make into a
6 # dh-make output file, you may use that output file without restriction.
7 # This special exception was added by Craig Small in version 0.37 of dh-make.
9 # Uncomment this to turn on verbose mode.
15 override_dh_auto_build:
16 ant -f core/build.xml dist-bin
18 override_dh_auto_install:
19 cp build/jar/* `pwd`/debian/openrocket/usr/share/java/
20 printf '#!/bin/sh\nexec java -jar /usr/share/java/%s "$$@"\n' \
21 "`/bin/ls build/jar`" > \
22 `pwd`/debian/openrocket/usr/bin/openrocket
24 override_dh_installman:
25 dh_installman debian/openrocket.1
28 install -o root -g root -m 644 pix/icon/icon-032.png \
29 debian/openrocket/usr/share/pixmaps/openrocket.png
30 pngtopnm < pix/icon/icon-032.png | ppmtoxpm > \
31 debian/openrocket/usr/share/pixmaps/openrocket.xpm
32 install -o root -g root -m 644 debian/openrocket.desktop \
33 debian/openrocket/usr/share/applications