An emulator for the uxn virtual machine.
# Template file for 'uxn2-git'
pkgname=uxn2-git
version=0git
revision=1
hostmakedepends="git"
makedepends="SDL2-devel"
depends="SDL2"
short_desc="Graphical emulator for the Varvara Computer, written in C99(SDL2)"
maintainer="[redacted]"
license="MIT"
homepage="https://git.sr.ht/~rabbits/uxn2"
do_fetch() {
git clone https://git.sr.ht/~rabbits/uxn2 "$wrksrc"
}
do_install() {
make PREFIX="$DESTDIR"/usr install
}
Like in this example on XBPS tutorials, we are fetching using git.
As per the build instructions, we need to use "PREFIX" to tell make to put it in the right place. Without this, make would put the files in ~/.local which is not allowed for packages.