Package Details: swt 4.21-1

Git Clone URL: https://aur.archlinux.org/swt.git (read-only, click to copy)
Package Base: swt
Description: An open source widget toolkit for Java
Upstream URL: https://www.eclipse.org/swt/
Licenses: EPL
Submitter: arojas
Maintainer: carsme
Last Packager: carsme
Votes: 7
Popularity: 0.40
First Submitted: 2021-04-22 20:25
Last Updated: 2021-10-04 00:00

Dependencies (13)

Required by (5)

Sources (2)

Latest Comments

1 2 Next › Last »

joarod commented on 2021-07-06 19:54

Compiling gives javac errors: error: unmappable character for encoding ASCII
Modify file build-swt.xml and include compiler option encoding="UTF-8", line remains like:
<javac srcdir="${src}" destdir="${build}" source="1.8" encoding="UTF-8" />
Update sha256sum in PKGBUILD file: aa13e4954df299c8c450f35677ed14476bb3f467453c2631d2f58d5414c2900d for build-swt.xml
Now makepkg -si should work!

solnce commented on 2021-07-06 09:26

Disowned the package. Turns out I don't need it anymore.

solnce commented on 2021-07-05 17:27

Nothing I can do about this, I think.

Edit: Maybe report upstream?

bjo commented on 2021-07-05 17:17

After updating the package:

(2/2) Aktualisierung läuft swt [##############################################] 100% Neue optionale Abhängigkeiten für swt gtk4 ldconfig: /usr/lib/libswt-awt-gtk-4944r26.so ist keine ELF-Datei - sie weist falsche »magische Bytes« am Beginn auf.

bjo commented on 2021-07-05 16:32

@solnce: I've given the package to you :)

solnce commented on 2021-07-05 14:42

Apply the following patch to build SWT.

CAUTION: This breaks hibiscus / jameica!

diff --git a/PKGBUILD b/PKGBUILD
index 7434fdc..b330b64 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Guillaume ALAUX <guillaume@archlinux.org>
 pkgname=swt
 # http://download.eclipse.org/eclipse/downloads/drops4
-pkgver=4.20M1
+pkgver=4.20
 pkgrel=1
 _date=202104071800
 pkgdesc='An open source widget toolkit for Java'
@@ -9,14 +9,14 @@ arch=('x86_64')
 url='https://www.eclipse.org/swt/'
 license=('EPL')
 depends=('java-runtime>=7' 'libxtst')
-makedepends=('jdk8-openjdk' 'glu' 'unzip' 'pkgconfig' 'gtk2' 'gtk3' 'ant')
-optdepends=('glu' 'gtk2' 'gtk3')
+makedepends=('jdk-openjdk' 'glu' 'unzip' 'pkgconfig' 'gtk3' 'gtk4' 'ant')
+optdepends=('glu' 'gtk3' 'gtk4')

 # Source isn't distributed separately from the binaries; we're not using the latter
-source=(https://download.eclipse.org/eclipse/downloads/drops4/S-${pkgver}-${_date}/swt-${pkgver}-gtk-linux-x86_64.zip
+source=(https://download.eclipse.org/eclipse/downloads/drops4/R-${pkgver}-202106111600/${pkgname}-${pkgver}-gtk-linux-${arch}.zip
         build-swt.xml)
-sha256sums=('df2a21425659bef510e99a26e212ce4782a85f507f5a304d838d31ae35a8be8a'
-            '3d30fbde25a6a6d260d04cb1782b7618c2a0a926440935a9eea516146eb0e1e1')
+sha256sums=('0d1ab552b95aab6df6c0499c934fd82864100dc638c43b6c1e793e740bb534c2'
+            'e1a7d5763912e52e94fcaffc778e55dbf822ffba5eb0d7f5d5018e79d8bd79d4')

 # These examples don't even run anymore (Try Tux Guitar instead)!
 # http://www.eclipse.org/swt/examples.php#standaloneOutsideEclipse
diff --git a/build-swt.xml b/build-swt.xml
index 9d1265e..b86ab63 100644
--- a/build-swt.xml
+++ b/build-swt.xml
@@ -8,7 +8,7 @@
    </target>

    <target name="compile" depends="init" description="Compile the SWT toolset">
-      <javac srcdir="${src}" destdir="${build}" source="1.7" />
+      <javac srcdir="${src}" destdir="${build}" source="1.8" />
    </target>

    <target name="jar">

cknoblauch commented on 2021-07-05 13:25

The source of the package seems to be broken. It's also dated, 4.20 has already been released.

solnce commented on 2021-07-05 10:34

@bjo That issue is now closed. Could you try pushing the new version again, please?

bjo commented on 2021-05-14 16:10

Adopted it and tried to update, was refused:

remote: error: package already provided by [extra]: swt remote: error: hook declined to update refs/heads/master

I assume this is related to https://gitlab.archlinux.org/archlinux/aurweb/-/issues/11

fred118 commented on 2021-05-14 12:54

I'm afraid I don't have the skills nor the time to acquire them. :-( Is there any channel were one could ask for volunteers to adopt this package?