File: rules

package info (click to toggle)
jets3t 0.8.1+dfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 5,816 kB
  • sloc: java: 39,293; xml: 431; sh: 212; makefile: 30
file content (38 lines) | stat: -rwxr-xr-x 1,127 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
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/make -f
include /usr/share/dpkg/default.mk
%:
	dh $@ --with javahelper

DEB_MANGLED_VERSION_UPSTREAM = $(shell echo $(DEB_VERSION_UPSTREAM) | sed 's/\+dfsg//')

override_dh_auto_build:
	ant rebuild-all
	ant javadoc
	mkdir build/man
	for script in cockpitlite cockpit synchronize uploader; do \
        pod2man -c '' -r '' debian/manpages/jets3t-$${script}.pod \
			> build/man/jets3t-$${script}.1 ; \
    done ;

override_dh_fixperms:
	dh_fixperms
	chmod 0755 debian/jets3t/usr/share/jets3t/bin/*

override_dh_install:
	dh_install
	rm debian/jets3t/usr/share/jets3t/resources/images/nuvola/license.txt
	mh_installpoms -plib$(DEB_SOURCE)-java
	mh_installjar -plib$(DEB_SOURCE)-java -l debian/poms/jets3t.pom \
		jars/jets3t-$(DEB_MANGLED_VERSION_UPSTREAM).jar

override_dh_installchangelogs:
	dh_installchangelogs RELEASE_NOTES.markdown

override_dh_auto_clean:
	dh_auto_clean
	mh_clean

get-orig-pom:
	mkdir -p debian/poms
	wget -O debian/poms/jets3t.pom -U NoAgent-1.0 \
            http://repo1.maven.org/maven2/net/java/dev/jets3t/jets3t/$(DEB_MANGLED_VERSION_UPSTREAM)/jets3t-$(DEB_MANGLED_VERSION_UPSTREAM).pom