blob: d824121bd28b56df44d845774c958b1da469bfd8 (
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
48
|
# Maintainer: Popolon <popolon(aLpopolon.org>
pkgbase=microw8
pkgname=microw8
pkgdesc="microw8"
pkgver=0.4.0
pkgrel=2
conflicts=(microw8-src)
#pkgdesc="WebAssembly based fantasy console inspired by the likes of TIC-80, WASM-4 and PICO-8."
arch=('x86_64' 'armv7h' 'armv8' 'riscv32' 'riscv64' 'loong64' 'powerpc' 'powerpc64le' 'powerpc64')
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=('9071ebc5d571df985324bfff13c05378598c9d8b1a61e7e38958b34aaeeeb414')
build() {
cd ${pkgname}-${pkgver}/
cargo build --release
}
_package() {
pkgdesc="${pkgdesc}, WebAssembly based fantasy console inspired by the likes of TIC-80, WASM-4 and PICO-8."
cd ${pkgname}-${pkgver}
install -Dm755 "target/release/uw8" "$pkgdir/usr/bin/uw8"
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"
}
_package-examples() {
pkgdesc="Examples for ${pkgdesc}"
cd ${pkgbase}-${pkgver}
mkdir -p ${pkgdir}/usr/share/doc/microw8
cp -a examples ${pkgdir}/usr/share/doc/microw8/
}
pkgname=(
"${pkgbase}"
"${pkgbase}-examples"
)
for _p in "${pkgname[@]}"; do
eval "package_$_p() {
$(declare -f "_package${_p#$pkgbase}")
_package${_p#$pkgbase}
}"
done
|