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"
create_wrksrc=yes
short_desc="Japanese side-scrolling platformer game"
maintainer="Orphaned <orphan@voidlinux.org>"
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 linuxDoukutsu-1.01/Config.dat usr/libexec/cavestory
vcopy linuxDoukutsu-1.01/data usr/libexec/cavestory
vdoc linuxDoukutsu-1.01/doc/readme.txt
vdoc linuxDoukutsu-1.01/doc/configfileformat.txt
vinstall linuxDoukutsu-${version}/doukutsu_${XBPS_TARGET_WORDSIZE}bits \
755 usr/libexec/cavestory doukutsu.bin
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
}