create changelog entry
[debian/openrocket] / debian / rules
1 #!/usr/bin/make -f
2 # -*- makefile -*-
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.
8
9 # Uncomment this to turn on verbose mode.
10 #export DH_VERBOSE=1
11
12 %:
13         dh  $@
14
15 override_dh_auto_build:
16         ant -f core/build.xml dist-bin
17
18 override_dh_auto_install:
19         cp core/build/jar/* `pwd`/debian/openrocket/usr/share/java/
20         printf '#!/bin/sh\nexec java -jar /usr/share/java/%s "$$@"\n' \
21                 "`/bin/ls core/build/jar`" > \
22                 `pwd`/debian/openrocket/usr/bin/openrocket 
23
24 override_dh_installman:
25         dh_installman debian/openrocket.1
26
27 override_dh_install:
28         install -o root -g root -m 644 core/resources/pix/icon/icon-032.png \
29                 debian/openrocket/usr/share/pixmaps/openrocket.png
30         pngtopnm < core/resources/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