void-packages/srcpkgs/cavestory/template

35 lines
1.2 KiB
Bash

# Template file for 'cavestory'
pkgname=cavestory
version=1.2
revision=2
archs="x86_64 i686"
wrksrc=linuxDoukutsu-1.01
short_desc="Japanese side-scrolling platformer game"
maintainer="Diogo Leal <diogo@diogoleal.com>"
license="custom: proprietary"
homepage="http://www.cavestory.org/"
distfiles="http://www.cavestory.org/downloads/linuxdoukutsu-1.01.tar.bz2
http://www.cavestory.org/downloads/linuxDoukutsu-${version}.zip"
checksum="76466fc1b1901ce25e301a4ec8450aced806c9d499d66707d6f7b38efebc24c1
a8711393c86cb6a7c6786883b22aed814f0e819cf935f8b273cb9dc5d58cfc6b"
repository=nonfree
nopie=yes
do_install() {
vmkdir usr/libexec/cavestory
vcopy Config.dat usr/libexec/cavestory
vcopy data usr/libexec/cavestory
vdoc doc/readme.txt
vdoc doc/configfileformat.txt
mv ../linuxDoukutsu-${version}/doukutsu_${XBPS_TARGET_WORDSIZE}bits doukutsu.bin
vinstall doukutsu.bin 755 usr/libexec/cavestory
vbin ${FILESDIR}/cavestory
vinstall ${FILESDIR}/cavestory.desktop 644 usr/share/applications/
vinstall ${FILESDIR}/cavestory.png 644 usr/share/pixmaps/
cat >LICENSE <<EOF
Cave Story (Freeware)
See: https://www.cavestory.org/game-info/game-releases.php
EOF
vlicense LICENSE
}