Package Details: tile-world 2.3.1-1

Git Clone URL: https://aur.archlinux.org/tile-world.git (read-only, click to copy)
Package Base: tile-world
Description: Emulation of the game Chip's Challenge
Upstream URL: https://tw2.bitbusters.club/
Keywords: game games
Licenses: GPL-2.0-or-later
Submitter: fukawi2
Maintainer: kleintux (denilsonsa)
Last Packager: kleintux
Votes: 10
Popularity: 0.000000
First Submitted: 2009-02-04 05:24 (UTC)
Last Updated: 2026-03-07 16:08 (UTC)

Latest Comments

brycec commented on 2026-08-26 18:30 (UTC) (edited on 2026-08-26 18:42 (UTC) by brycec)

With 2.3.1-1, when tworld2 launches, it attempts to load data files, resources and sets from the AUR package directory (e.g. many errors similar to error: /home/brycec/.cache/yay/tile-world/pkg/tile-world/usr/share/tworld/sets/CCLP3.dat-ms.dac: No such file or directory [/home/brycec/.cache/yay/tile-world/src/tworld-2.3.1/fileio.c:115]).

The below patch resolves this by configuring CMake with the appropriate system prefix and then overriding the installation target to be that of the AUR packaging directory.

diff --git a/PKGBUILD b/PKGBUILD
index 91c1620..42bb36d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@

 pkgname=tile-world
 pkgver=2.3.1
-pkgrel=1
+pkgrel=2
 pkgdesc="Emulation of the game Chip's Challenge"
 arch=('x86_64')
 url="https://tw2.bitbusters.club/"
@@ -28,14 +28,13 @@ build() {
   #make
   mkdir build
   cd build
-  cmake -DCMAKE_BUILD_TYPE=Relase -DCMAKE_INSTALL_PREFIX="${pkgdir}/usr/" ..
+  cmake -DCMAKE_BUILD_TYPE=Relase -DCMAKE_INSTALL_PREFIX=/usr ..
   cmake --build .
 }

 package() {
   cd "${srcdir}/tworld-${pkgver}/build"
-  mkdir -p "${pkgdir}/usr"  
-  make install
+  make DESTDIR="$pkgdir/" install
 #  install -dm755 "${pkgdir}"/usr/{bin,share/{tworld,man/man6}}
 #  install -dm755 "${pkgdir}/usr/share/tworld/"{sets,data,res}
 #  install -m755 tworld "${pkgdir}/usr/bin"

Edit to add some clarity: tworld2 -d confirms that the default directories are the temporary build directory:

% tworld2 -d
Resource files read from:        /home/brycec/.cache/yay/tile-world/pkg/tile-world/usr/share/tworld/res
Level sets read from:            /home/brycec/.cache/yay/tile-world/pkg/tile-world/usr/share/tworld/sets
Configured data files read from: /home/brycec/.cache/yay/tile-world/pkg/tile-world/usr/share/tworld/data
Solution files saved in:         /home/brycec/.tworld

With the patch:

% tworld2 -d
Resource files read from:        /usr/share/tworld/res
Level sets read from:            /usr/share/tworld/sets
Configured data files read from: /usr/share/tworld/data
Solution files saved in:         /home/brycec/.tworld

fukawi2 commented on 2016-02-29 01:26 (UTC)

Bump to 1.3.2