Package Details: tic-80-git r2883.3cf27c5e-1

Git Clone URL: https://aur.archlinux.org/tic-80-git.git (read-only, click to copy)
Package Base: tic-80-git
Description: TIC-80 tiny computer emulator
Upstream URL: https://tic80.com/
Licenses: MIT
Provides: tic-80
Submitter: MaryJaneInChain
Maintainer: MaryJaneInChain
Last Packager: MaryJaneInChain
Votes: 17
Popularity: 0.001943
First Submitted: 2019-09-25 10:00 (UTC)
Last Updated: 2024-02-19 09:48 (UTC)

Latest Comments

1 2 3 4 5 Next › Last »

Popolon commented on 2024-09-27 21:48 (UTC) (edited on 2024-11-11 09:16 (UTC) by Popolon)

Need to add the following ARGS to cmake now:

  • -DBUILD_SDL=true -DBUILD_PLAYER=true to build player-sdl
  • -DBUILD_TOOLS=ON to build bin2txt, cart2prj and prj2cart

so Change the cmaake file as this (I also build WASM but that's not mandatory, all other language that lua need to be set to ON now to be compiled):

    cmake -DBUILD_PRO=true -DBUILD_TOUCH_INPUT=true -DBUILD_WITH_WASM=ON \
          -DBUILD_SDL=true -DBUILD_PLAYER=true -DBUILD_TOOLS=ON ..

Also need to replace 'lua-sdl2' dependency by 'lua53-sdl2' to allow update to last version

Need also to change the versioning to

git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'

dreieck commented on 2024-08-07 14:57 (UTC)

package() fails due to missing bin/player-sdl:

==> Starting package()...
install: cannot stat 'bin/player-sdl': No such file or directory
==> ERROR: A failure occurred in package().

Regards and thanks for maintaining!

dreieck commented on 2024-08-07 14:47 (UTC)

In the arch linux repositories, lua-sdl2 gets replaced with lua53-sdl2.

simona commented on 2024-07-31 22:23 (UTC)

install: impossibile eseguire stat di 'bin/player-sdl': File o directory non esistente

dreieck commented on 2024-05-22 12:18 (UTC)

This installs binaries. So, arch=('any') must not be used.
You must explicitly specify all the architectures that this software builds for and can run on (or a subset of them), e.g. 'x86_64' 'i686' 'aarch64' and so on.

Regards and thanks for the package!

dreieck commented on 2024-05-22 12:17 (UTC)

Updated build() and package() functions that build all executables:

build() {
    cd "$srcdir/$_gitname/build"
    cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr \
      -DBUILD_LIBRETRO=false \
      -DBUILD_NO_OPTIMIZATION=false \
      -DBUILD_PLAYER=true \
      -DBUILD_PRO=true \
      -DBUILD_SDL=true \
      -DBUILD_SDLGPU=true \
      -DBUILD_STATIC=false \
      -DBUILD_TOOLS=true \
      -DBUILD_TOUCH_INPUT=true \
      -DBUILD_WITH_ALL=true \
      -DBUILD_WITH_FENNEL=true \
      -DBUILD_WITH_JANET=true \
      -DBUILD_WITH_JS=true \
      -DBUILD_WITH_LUA=true \
      -DBUILD_WITH_MOON=true \
      -DBUILD_WITH_MRUBY=true \
      -DBUILD_WITH_PYTHON=true \
      -DBUILD_WITH_SCHEME=true \
      -DBUILD_WITH_SQUIRREL=true \
      -DBUILD_WITH_WASM=true \
      -DBUILD_WITH_WREN=true \
      ..
    make -j
}

package() {
    cd "$srcdir/$_gitname/build"
    make DESTDIR="${pkgdir}" install

    install -Dvm755 bin/player-sdl "${pkgdir}/usr/bin/player-sdl"
    install -Dvm755 bin/bin2txt "${pkgdir}/usr/bin/bin2txt"
    install -Dvm755 bin/cart2prj "${pkgdir}/usr/bin/cart2prj"
    install -Dvm755 bin/prj2cart "${pkgdir}/usr/bin/prj2cart"
    install -Dvm755 bin/wasmp2cart "${pkgdir}/usr/bin/wasmp2cart"
    install -Dvm755 bin/xplode "${pkgdir}/usr/bin/xplode"

    install -Dvm755 -t "${pkgdir}/usr/lib" bin/*.so

    install -Dvm644 -t "${pkgdir}/usr/share/doc/tic-80" "README.md" "SECURITY.md"
    install -Dvm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE
}

dreieck commented on 2024-05-22 12:14 (UTC)

You need to install the license text into /usr/share/licenses/${pkgname}/:

tic-80-git E: Uncommon license identifiers such as 'MIT' require license files below /usr/share/licenses/tic-80-git/ or switching to common license identifiers. Found 0/1 required license files.

Regards!

dreieck commented on 2024-05-22 12:01 (UTC)

package() fails for me with install: cannot stat 'bin/player-sdl': No such file or directory:

==> Starting package()...
install: cannot stat 'bin/player-sdl': No such file or directory
==> ERROR: A failure occurred in package().
    Aborting...

It seems that you need to set -DBUILD_PLAYER=ON. Also other binaries are affected!

dreieck commented on 2024-05-22 11:58 (UTC)

This project uses gut submodules.

Can you please follow ↗ the Arch Linux guidelines on git submodules and download them in the source array and only reference them in prepare()?

Regards and thanks for the package!

==> Starting prepare()...
Submodule 'vendor/argparse' (https://github.com/cofyc/argparse.git) registered for path 'vendor/argparse'
Submodule 'vendor/blip-buf' (https://github.com/nesbox/blip-buf.git) registered for path 'vendor/blip-buf'
Submodule 'vendor/dirent' (https://github.com/tronkko/dirent.git) registered for path 'vendor/dirent'
Submodule 'vendor/dlfcn' (https://github.com/dlfcn-win32/dlfcn-win32.git) registered for path 'vendor/dlfcn'
Submodule 'vendor/giflib' (https://github.com/nesbox/giflib.git) registered for path 'vendor/giflib'
Submodule 'vendor/janet' (https://github.com/janet-lang/janet.git) registered for path 'vendor/janet'
Submodule 'vendor/jsmn' (https://github.com/zserge/jsmn.git) registered for path 'vendor/jsmn'
Submodule 'vendor/libpng' (https://github.com/glennrp/libpng.git) registered for path 'vendor/libpng'
Submodule 'vendor/lpeg' (https://github.com/nesbox/lpeg.git) registered for path 'vendor/lpeg'
Submodule 'vendor/lua' (https://github.com/lua/lua.git) registered for path 'vendor/lua'
Submodule 'vendor/moonscript' (https://github.com/nesbox/moonscript.git) registered for path 'vendor/moonscript'
Submodule 'mruby' (https://github.com/mruby/mruby.git) registered for path 'vendor/mruby'
Submodule 'vendor/msf_gif' (https://github.com/notnullnotvoid/msf_gif.git) registered for path 'vendor/msf_gif'
Submodule 'vendor/naett' (https://github.com/erkkah/naett.git) registered for path 'vendor/naett'
Submodule 'vendor/pocketpy' (https://github.com/blueloveTH/pocketpy) registered for path 'vendor/pocketpy'
Submodule 'vendor/quickjs' (https://github.com/nesbox/quickjs.git) registered for path 'vendor/quickjs'
Submodule 'vendor/sdl-gpu' (https://github.com/aliceisjustplaying/sdl-gpu.git) registered for path 'vendor/sdl-gpu'
Submodule 'vendor/sdl2' (https://github.com/libsdl-org/SDL.git) registered for path 'vendor/sdl2'
Submodule 'vendor/sokol' (https://github.com/floooh/sokol.git) registered for path 'vendor/sokol'
Submodule 'vendor/squirrel' (https://github.com/albertodemichelis/squirrel.git) registered for path 'vendor/squirrel'
Submodule 'vendor/wasm3' (https://github.com/wasm3/wasm3.git) registered for path 'vendor/wasm3'
Submodule 'vendor/wren' (https://github.com/wren-lang/wren.git) registered for path 'vendor/wren'
Submodule 'vendor/zip' (https://github.com/kuba--/zip.git) registered for path 'vendor/zip'
Submodule 'vendor/zlib' (https://github.com/madler/zlib.git) registered for path 'vendor/zlib'
Cloning into '/var/cache/makepkg/build/tic-80-git/src/TIC-80/vendor/argparse'...
Cloning into '/var/cache/makepkg/build/tic-80-git/src/TIC-80/vendor/blip-buf'...
Cloning into '/var/cache/makepkg/build/tic-80-git/src/TIC-80/vendor/dirent'...
Cloning into '/var/cache/makepkg/build/tic-80-git/src/TIC-80/vendor/dlfcn'...
Cloning into '/var/cache/makepkg/build/tic-80-git/src/TIC-80/vendor/giflib'...
Cloning into '/var/cache/makepkg/build/tic-80-git/src/TIC-80/vendor/janet'...
Cloning into '/var/cache/makepkg/build/tic-80-git/src/TIC-80/vendor/jsmn'...
Cloning into '/var/cache/makepkg/build/tic-80-git/src/TIC-80/vendor/libpng'...
Cloning into '/var/cache/makepkg/build/tic-80-git/src/TIC-80/vendor/lpeg'...
Cloning into '/var/cache/makepkg/build/tic-80-git/src/TIC-80/vendor/lua'...
Cloning into '/var/cache/makepkg/build/tic-80-git/src/TIC-80/vendor/moonscript'...
Cloning into '/var/cache/makepkg/build/tic-80-git/src/TIC-80/vendor/mruby'...
Cloning into '/var/cache/makepkg/build/tic-80-git/src/TIC-80/vendor/msf_gif'...
Cloning into '/var/cache/makepkg/build/tic-80-git/src/TIC-80/vendor/naett'...
Cloning into '/var/cache/makepkg/build/tic-80-git/src/TIC-80/vendor/pocketpy'...
Cloning into '/var/cache/makepkg/build/tic-80-git/src/TIC-80/vendor/quickjs'...
Cloning into '/var/cache/makepkg/build/tic-80-git/src/TIC-80/vendor/sdl-gpu'...
Cloning into '/var/cache/makepkg/build/tic-80-git/src/TIC-80/vendor/sdl2'...
Cloning into '/var/cache/makepkg/build/tic-80-git/src/TIC-80/vendor/sokol'...
Cloning into '/var/cache/makepkg/build/tic-80-git/src/TIC-80/vendor/squirrel'...
Cloning into '/var/cache/makepkg/build/tic-80-git/src/TIC-80/vendor/wasm3'...
Cloning into '/var/cache/makepkg/build/tic-80-git/src/TIC-80/vendor/wren'...
Cloning into '/var/cache/makepkg/build/tic-80-git/src/TIC-80/vendor/zip'...
Cloning into '/var/cache/makepkg/build/tic-80-git/src/TIC-80/vendor/zlib'...
[...]