File: rules

package info (click to toggle)
cortado 0.6.0-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 1,740 kB
  • sloc: java: 21,834; xml: 592; sh: 78; makefile: 17
file content (22 lines) | stat: -rwxr-xr-x 698 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
#!/usr/bin/make -f
export JAVA_HOME=/usr/lib/jvm/default-java
export SOURCE_DATE_EPOCH = $(shell date -d "$$(dpkg-parsechangelog --count 1 -SDate)" +%s)
PKD := $(abspath $(dir $(MAKEFILE_LIST)))
DEB_UPSTREAM_VERSION := $(shell dpkg-parsechangelog -l$(PKD)/changelog -SVersion | cut -d- -f1)

%:
	dh $@ --buildsystem=ant

override_dh_auto_build:
	dh_auto_build -- \
		-Dprefix=$(CURDIR)/debian/libcortado-java/usr \
		-Dbuild.type=stripped \
		-Dreal_version=$(DEB_UPSTREAM_VERSION) \
		-DDATE=$(shell date -u -d @$(SOURCE_DATE_EPOCH) +"%Y-%m-%d") \
		install_applet

override_dh_auto_clean:
	dh_auto_clean -- distclean

get-orig-source::
	uscan --download-current-version --force-download --rename