Package Details: dusklight 1.4.1-2

Git Clone URL: https://aur.archlinux.org/dusklight.git (read-only, click to copy)
Package Base: dusklight
Description: Dusklight brings a classic adventure to PC and mobile platforms with a variety of fixes and improvements.
Upstream URL: https://github.com/TwilitRealm/dusklight
Licenses: CC0-1.0
Conflicts: tp-dusk
Provides: tp-dusk
Replaces: tp-dusk
Submitter: HurricanePootis
Maintainer: HurricanePootis
Last Packager: HurricanePootis
Votes: 12
Popularity: 4.22
First Submitted: 2026-05-13 03:52 (UTC)
Last Updated: 2026-06-19 04:45 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

yochananmarqos commented on 2026-05-13 15:52 (UTC) (edited on 2026-05-13 16:17 (UTC) by yochananmarqos)

@HurricanePootis: By the way, I added dusk a day before you added this, so technically it's a duplicate package. However, since upstream renamed the project to dusklight, I've submitted a deletion request for dusk.

EDIT: Ah, it appears my dusk package was a duplicate as it already existed as tp-dusk previously.

yochananmarqos commented on 2026-05-13 15:51 (UTC)

@HurricanePootis: Ah, my mistake. Turns out it automatically finds the system sdl3 and detects the shared lib.

HurricanePootis commented on 2026-05-13 15:49 (UTC)

@yochananmarqos

SDL3 does not build for me, nor in a clean chroot with extra-x86-64-build -c. Plus, using namcap, sdl3 is listed as a depends(). Furthermore, I can see its linked to ${srcdir}/build/dusklight with:

hurricane@TheCloutBook ~/aur/dusklight/src/build $ ldd dusklight | grep SDL
        libSDL3.so.0 => /usr/lib/libSDL3.so.0 (0x00007f349c200000)

Can you show me the output of namcap on your system, alongside ldd src/build/dusklight | grep SDL.

yochananmarqos commented on 2026-05-13 15:41 (UTC)

@HurricanePootis: Please add the following Cmake flags to detect the system sdl3, otherwise it builds it:

-DAURORA_SDL3_PROVIDER='system'
-DAURORA_SDL3_LINKAGE='shared'

00ein00 commented on 2026-05-13 15:26 (UTC)

/usr/bin/dusklight: line 3: cd: /usr/share/tp-dusk: No such file or directory

HurricanePootis commented on 2026-05-12 01:56 (UTC) (edited on 2026-05-12 01:58 (UTC) by HurricanePootis)

@R0dn3yS I am so sorry that my launcher script did not work! I want to apologize profusely for sending a subpar patch to you.

I still want to give another shot at putting the binary in /usr/lib, and I think I figured out how. Instead of having a wrapper script at all, if /usr/share/tp-dusk/res is soft link to /usr/lib/tp-dusk/res, then whenever /usr/lib/tp-dusk/dusk is executed, it will work regardless of where you are executing from.

diff --git a/PKGBUILD b/PKGBUILD
index 6cc047f..fe856f0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,18 +8,16 @@ pkgdesc="Dusk is a reverse-engineered reimplementation of Twilight Princess."
 arch=('x86_64')
 url="https://github.com/TwilitRealm/dusk"
 license=('CC0-1.0')
-depends=(libjpeg-turbo glibc libgcc sdl3 abseil-cpp freetype2 libstdc++ bash)
+depends=(libjpeg-turbo glibc libgcc sdl3 abseil-cpp freetype2 libstdc++)
 makedepends=(git cmake ninja llvm vulkan-headers python python-markupsafe clang lld alsa-lib libpulse libxrandr patchelf)
 source=(
   "git+$url#tag=v${pkgver}"
   "git+https://github.com/encounter/aurora.git"
-  "launcher.sh"
   "tp-dusk.desktop"
 )

 sha256sums=('0d76d2fe29a0273aea84f3d71807c09b08911523ebeca8a7db8c8c8fdaae7022'
             'SKIP'
-            '5e7de2d2280b48efa543dc9a0484d9af6a18d6d881833deb4ca333072bc46aa0'
             '1e6547cf4dd69f0ecb6895733dcd13f3e265c6267298c7bf83dd6acbad42fda5')

 prepare() {
@@ -47,12 +45,15 @@ build() {
 }

 package() {
-  install -Dm 755 "${srcdir}/dusk/build/dusk" "${pkgdir}/usr/share/${pkgname}/dusk"
-  install -Dm 755 "launcher.sh" "${pkgdir}/usr/bin/${pkgname}"
+  install -Dm 755 "${srcdir}/dusk/build/dusk" "${pkgdir}/usr/lib/${pkgname}/dusk"
+  install -dm 755 "${pkgdir}/usr/share/${pkgname}"
+  install -dm 755 "${pkgdir}/usr/bin"
   cp -r "${srcdir}/dusk/res" "${pkgdir}/usr/share/${pkgname}/res"
+  ln -s "/usr/share/${pkgname}/res" "${pkgdir}/usr/lib/${pkgname}/res"
+  ln -s "/usr/lib/${pkgname}/dusk" "${pkgdir}/usr/bin/${pkgname}"

   install -Dm 644 "${srcdir}/dusk/res/icon.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
   install -Dm 755 "tp-dusk.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"

-  patchelf --remove-rpath "${pkgdir}/usr/share/${pkgname}/dusk"
+  patchelf --remove-rpath "${pkgdir}/usr/lib/${pkgname}/dusk"
 }
diff --git a/launcher.sh b/launcher.sh
deleted file mode 100644
index a42382b..0000000
--- a/launcher.sh
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/usr/bin/env bash
-
-cd /usr/share/tp-dusk || exit 0
-/usr/share/tp-dusk/dusk

Thus, no more script is needed at all. Make sure to do the system links carefully, as we are linking from where they will be into the pkgdir, so whenever the package is installed they will be pointing to the correction final location.

fruitigearist commented on 2026-05-11 17:02 (UTC)

@R0dn3yS yes that has fixed it for me.

R0dn3yS commented on 2026-05-11 16:43 (UTC)

I reverted to the old launch script and it should work now.

fruitigearist commented on 2026-05-11 16:31 (UTC) (edited on 2026-05-11 16:32 (UTC) by fruitigearist)

@R0dn3yS 1.0.1-6 icon is fixed yes but menu still missing. Running from terminal still gives same repeating output as my first comment. To be clear, it's not a black screen. The actual intro scene renders, the audio plays, and you can hear the click sound for scrolling through the menu, but the menu itself is invisible or missing.

1.0.1-1 is the last version that works properly for me.

R0dn3yS commented on 2026-05-11 16:22 (UTC)

The icon should be fixed now, as for the black screen it's probably because the program can't find the res folder which is weird as it works on my system.