File: rules

package info (click to toggle)
aladin 11.024%2Bdfsg2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 14,284 kB
  • sloc: java: 191,244; makefile: 144; xml: 49; sh: 1
file content (26 lines) | stat: -rwxr-xr-x 666 bytes parent folder | download
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
26
#!/usr/bin/make -f

export JAVA_HOME=/usr/lib/jvm/default-java

%:
	dh $@ --with javahelper

override_dh_auto_build:
	ant main

get-orig-source:
	#fname=AladinBetaSrc.jar ; \
	fname=AladinSrc.jar ; \
	wget -Oaladin.zip http://aladin.unistra.fr/java/download/$$fname
	( mkdir AladinSrc ; \
	cd AladinSrc ; \
	unzip ../aladin.zip ;\
	rm -f *.jar ; \
	rm -rf cds/healpix healpix ; \
	rm -rf org/jastronomy/jsofa ; \
	VERSION=`fgrep "String VERSION" cds/aladin/Aladin.java | sed 's/.*"v\(.*\)".*/\1/'` ; \
	tar cf ../aladin_$$VERSION+dfsg.orig.tar . ; \
	cd .. ; \
	rm -rf AladinSrc ; \
	mv -f aladin.zip AladinSrc-$$VERSION.zip ; \
	xz aladin_$$VERSION+dfsg.orig.tar )