File: rules

package info (click to toggle)
cronometer 0.9.9+dfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 8,748 kB
  • sloc: java: 17,382; xml: 909; makefile: 19; sh: 18
file content (25 lines) | stat: -rwxr-xr-x 797 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/make -f

JAVA_HOME=/usr/lib/jvm/default-java
export CLASSPATH=/usr/share/java/jcommon.jar:/usr/share/java/jfreechart.jar:/usr/share/java/swingx.jar:/usr/share/cronometer/usda_sr24.jar:/usr/share/cronometer/crdb_005.jar:/usr/share/cronometer/docs.jar:/usr/share/java/cronometer.jar

%:
	dh $@ --with javahelper

override_dh_auto_build:
	mkdir -p bin/lib
	cp -a src/img bin/
	cp -a src/docs bin/
	cp src/menubar.xml src/nutrients.xml bin/
	ant docs.jar
	cp lib/*.jar bin/lib
	dh_auto_build

override_dh_auto_install:
	dh_link usr/share/java/cronometer.jar usr/bin/cronometer
	mkdir -p debian/cronometer/usr/share/pixmaps
	cp src/img/apple-200x200.png debian/cronometer/usr/share/pixmaps/cronometer.png
	dh_auto_install

override_dh_auto_clean:
	rm -Rf bin lib/cronometer.jar lib/docs.jar