oops, need the desktop file actually delivered
[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 dist-bin
17
18 override_dh_auto_install:
19         cp build/jar/* `pwd`/debian/openrocket/usr/share/java/
20         printf '#!/bin/sh\njava -jar /usr/share/java/%s\n' \
21                 "`/bin/ls 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 pix/icon/icon-032.png \
29                 debian/openrocket/usr/share/pixmaps/openrocket.png
30         install -o root -g root -m 644 debian/altos.desktop \
31                 debian/openrocket/usr/share/applications