File: rules

package info (click to toggle)
tightvnc-java 1.3.10-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 796 kB
  • sloc: java: 8,934; makefile: 122; sh: 83
file content (23 lines) | stat: -rwxr-xr-x 725 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
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

DEST=$(CURDIR)/debian/tightvnc-java
UPSTREAM_VERSION=`grep -m1 -o -E '[0-9.]{5,}' debian/changelog`

%:
	dh $@

override_dh_auto_install:
	dh_auto_install -- INSTALL_DIR=$(DEST)/usr/share/tightvnc-java
	# Fix for making it more policy compliant.
	mv $(DEST)/usr/share/tightvnc-java/VncViewer.jar \
		$(DEST)/usr/share/java/tightvncviewer-$(UPSTREAM_VERSION).jar
	ln -s ../java/tightvncviewer.jar \
		$(DEST)/usr/share/tightvnc-java/VncViewer.jar
	ln -s tightvncviewer-$(UPSTREAM_VERSION).jar \
		$(DEST)/usr/share/java/tightvncviewer.jar
	# Install command line.
	install -m 755 debian/jtightvncviewer.sh \
		$(DEST)/usr/bin/jtightvncviewer