blob: 9ab389e8e53d0a36164bc259c5f2ae313485d44a (
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
|
# Maintainer: Popolon <popolon(aLpopolon.org>
pkgname=microw8-src
_pkgname=microw8
pkgver=0.3.0
pkgrel=1
pkgdesc="WebAssembly based fantasy console inspired by the likes of TIC-80, WASM-4 and PICO-8."
arch=('x86_64' 'armv7h' 'armv8' 'riscv32' 'riscv64')
url='https://exoticorn.github.io/microw8'
license=('The Unlicense')
makedepends=('rust')
source=("https://github.com/exoticorn/${_pkgname}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('61df79c65d61419bcae2d0224a0e650271c7d9d197362910d055a4b374dc6467')
#prepare() {
# cd "${pkgname}-${pkgver}"
# patch -p1 -i "${srcdir}"/fix-gcc13-build.patch
#}
build() {
cd ${_pkgname}-${pkgver}/
cargo build --release
}
#check() {
# cmake --build build --target test
#}
package() {
cd ${_pkgname}-${pkgver}
install -Dm755 "target/release/uw8" "$pkgdir/usr/bin/uw8"
mkdir -p ${pkgdir}/usr/share/doc/microw8
cp -a examples ${pkgdir}/usr/share/doc/microw8/
install -Dm644 UNLICENSE -t "$pkgdir/usr/share/licenses/microw8/UNLICENSE"
#install -Dm644 README.md "$pkgdir/usr/share/doc/microw8/README.md"
#install -Dm644 microw8.html "$pkgdir/usr/share/doc/microw8/microw8.html"
}
|