DEB packaging of PZ Signer from ePUAP (including Java 9+ fixes)
Jacek Kowalski
2019-09-25 207ea2ca32736f2d08d48410bc9ec6246c8c1c13
commit | author | age
207ea2 1 #!/usr/bin/make -f
JK 2
3 NAME = pzsigner
4 VERSION = 1.0
5 PACKAGENAME = pzsigner
6 PACKAGEVERSION = $(VERSION)-0
7 URL = "https://pz.gov.pl/PZ%20Signer/linux/x86"
8 BASENAME = pzsigner.zip
9
10 %:
11     dh $@
12
13 override_dh_auto_clean:
14     find src -name '*.class' -delete
15 override_dh_auto_build:
16     mkdir -p build
17     wget -N --progress=dot:mega "$(URL)/$(BASENAME)"
18     unzip -o "$(BASENAME)" -d build
19     javac -cp 'build/x86_64/*' src/com/pentacomp/signer/KeyStoreManager.java
20     cp -f build/x86_64/pz-signer-1.0-SNAPSHOT.jar build/x86_64/pz-signer-1.0-SNAPSHOT-modified.jar
21     zip -d build/x86_64/pz-signer-1.0-SNAPSHOT-modified.jar META-INF/MANIFEST.MF 'META-INF/SIGNING.*'
22
23 override_dh_gencontrol:
24     dh_gencontrol -- -v$(PACKAGEVERSION)