From 1b739a129d0941205f6e94f26cc57f6a8b6120ad Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Tue, 22 Oct 2019 20:29:46 +0000
Subject: [PATCH] Update SWT to the latest version

---
 debian/install   |    1 +
 debian/rules     |    9 ++++++---
 debian/clean     |    4 +++-
 debian/cleandirs |    1 +
 4 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/debian/clean b/debian/clean
index edc907c..c644c36 100644
--- a/debian/clean
+++ b/debian/clean
@@ -1,2 +1,4 @@
 build/
-pzsigner.zip
+swt/
+*.jar
+*.zip
diff --git a/debian/cleandirs b/debian/cleandirs
index 378eac2..d1664b6 100644
--- a/debian/cleandirs
+++ b/debian/cleandirs
@@ -1 +1,2 @@
 build
+swt
diff --git a/debian/install b/debian/install
index e6a126b..f3bf516 100644
--- a/debian/install
+++ b/debian/install
@@ -1,4 +1,5 @@
 build/x86_64/pz-signer-1.0-SNAPSHOT-modified.jar opt/pzsigner/lib
+swt/*.jar opt/pzsigner/lib
 *.jar opt/pzsigner/lib
 src/* opt/pzsigner/classes
 pzsigner usr/bin
diff --git a/debian/rules b/debian/rules
index 3095407..c3a230f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,7 +3,7 @@
 NAME = pzsigner
 VERSION = 1.0
 PACKAGENAME = pzsigner
-PACKAGEVERSION = $(VERSION)-1
+PACKAGEVERSION = $(VERSION)-2
 URL = "https://pz.gov.pl/PZ%20Signer/linux/x86"
 BASENAME = pzsigner.zip
 
@@ -15,12 +15,15 @@
 override_dh_auto_build:
 	mkdir -p build
 	wget -N --progress=dot:mega "$(URL)/$(BASENAME)"
+	unzip -o "$(BASENAME)" -d build
+	wget -N --progress=dot:mega "http://ftp.fau.de/eclipse/eclipse/downloads/drops4/R-4.13-201909161045/swt-4.13-gtk-linux-x86_64.zip"
+	unzip -o "swt-4.13-gtk-linux-x86_64.zip" -d swt
 	wget -N --progress=dot:mega "http://central.maven.org/maven2/javax/xml/bind/jaxb-api/2.3.1/jaxb-api-2.3.1.jar"
 	wget -N --progress=dot:mega "http://central.maven.org/maven2/com/sun/xml/bind/jaxb-impl/2.3.3-b01/jaxb-impl-2.3.3-b01.jar"
-	unzip -o "$(BASENAME)" -d build
+
 	javac -cp 'build/x86_64/*' src/com/pentacomp/signer/KeyStoreManager.java
 	cp -f build/x86_64/pz-signer-1.0-SNAPSHOT.jar build/x86_64/pz-signer-1.0-SNAPSHOT-modified.jar
-	zip -d build/x86_64/pz-signer-1.0-SNAPSHOT-modified.jar META-INF/MANIFEST.MF 'META-INF/SIGNING.*'
+	zip -d build/x86_64/pz-signer-1.0-SNAPSHOT-modified.jar META-INF/MANIFEST.MF 'META-INF/SIGNING.*' 'org/eclipse/swt/*' 'libswt*' version.txt
 
 override_dh_gencontrol:
 	dh_gencontrol -- -v$(PACKAGEVERSION) 

--
Gitblit v1.9.1