arthurfragoso

Arch tic80 PKGBUILD

Aug 23rd, 2025
2,412
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 1.09 KB | Source Code | 0 0
  1. # Maintainer: Diego Ascânio Santos <[email protected]>
  2.  
  3. pkgname=tic80-pro-git
  4. pkgver=1.1.2837
  5. pkgrel=1
  6. pkgdesc="TIC-80 is a fantasy computer for making, playing and sharing tiny games. This is the pro version, built from git, for those who don't have money to buy it."
  7. arch=('x86_64')
  8. url="https://tic80.com"
  9. license=('MIT')
  10. conflicts=('tic80')
  11. depends=('libglvnd' 'sdl2')
  12. makedepends=('git' 'cmake' 'ruby' 'mesa' 'glu' 'coreutils')
  13. source=(
  14.     'git+https://github.com/nesbox/TIC-80.git#tag=v1.1.2837'
  15. )
  16. sha256sums=(
  17.     'SKIP'
  18. )
  19.  
  20. prepare() {
  21.     cd "$srcdir/TIC-80"
  22.     git submodule update --init --recursive
  23.     patch -Np1 -i "$srcdir/../use-system-sdl2.patch"
  24. }
  25.  
  26. build() {
  27.     cd "$srcdir/TIC-80"
  28.     mkdir -p build
  29.     cd build
  30.     cmake .. -DBUILD_PRO=On -DBUILD_WITH_ALL=On -DUSE_SYSTEM_SDL2=On
  31.     make -j$(nproc)
  32. }
  33.  
  34. package() {
  35.     cd "$srcdir/TIC-80/build"
  36.     make DESTDIR="$pkgdir" install -j$(nproc)
  37.  
  38.     # license
  39.     mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
  40.     install -Dm644 "$srcdir/TIC-80/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  41. }
  42.  
Tags: tic80
Advertisement
Add Comment
Please, Sign In to add comment