blob: 3eceaa43cba39bb2afa16a4662b2cacca5917728 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Maintainer: MaryJaneInChain <maryjaneinchain@gmail.com>
pkgname=tic-80-git
pkgver=r2883.3cf27c5e
pkgrel=1
pkgdesc='TIC-80 tiny computer emulator'
arch=('any')
url="https://tic80.com/"
license=('MIT')
depends=('gtk3' 'glu' 'freeglut>=3.0.0' 'libglvnd' 'lua-sdl2')
makedepends=('git' 'cmake' 'ruby-rake')
provides=(tic-80)
_gitname=TIC-80
source=("git+https://github.com/nesbox/TIC-80.git")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$_gitname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/$_gitname"
git submodule update --init --recursive --depth=1
}
build() {
cd "$srcdir/$_gitname/build"
cmake -DBUILD_PRO=true -DBUILD_TOUCH_INPUT=true ..
make -j
}
package() {
cd "$srcdir/$_gitname/build"
install -Dm755 bin/tic80 "${pkgdir}/usr/bin/tic80"
install -Dm755 bin/player-sdl "${pkgdir}/usr/bin/player-sdl"
install -Dm755 bin/bin2txt "${pkgdir}/usr/bin/bin2txt"
install -Dm644 linux/tic80.desktop -t "${pkgdir}/usr/share/applications/"
install -Dm644 linux/tic80.png -t "${pkgdir}/usr/share/icons/"
install -Dm755 bin/cart2prj "${pkgdir}/usr/bin/cart2prj"
install -Dm755 bin/prj2cart "${pkgdir}/usr/bin/prj2cart"
install -Dm755 bin/wasmp2cart "${pkgdir}/usr/bin/wasmp2cart"
install -Dm755 bin/xplode "${pkgdir}/usr/bin/xplode"
}
|