void-packages/srcpkgs/arena/template

59 lines
1.2 KiB
Bash

# Template file for 'arena'
pkgname=arena
version=1.1
revision=2
archs="armv7l i686 x86_64"
short_desc="Free GUI for chess"
maintainer="Orphaned <orphan@voidlinux.org>"
license="custom:freeware"
homepage="http://www.playwitharena.de"
restricted=yes
case "$XBPS_TARGET_MACHINE" in
armv7l)
_arch=arm
checksum=a263380fb65b8d2a7b8a9cf3b9b378bd77d104afe43c64c3dc34f79cfcc1c969
;;
i686)
_arch=32bit
checksum=2e00819cba69fa6882a270b755e909ef1686854b5448300581b5f5ae95e7491f
;;
x86_64)
_arch=64bit
checksum=66235160e317fd22112490886ff4a3144309e84c3275e611a68effeacb0e07ea
;;
esac
distfiles="http://www.playwitharena.de/downloads/arenalinux_${_arch}_${version}.tar.gz"
create_wrksrc=yes
nostrip=yes
do_install() {
vmkdir opt/arena
vcopy ${wrksrc}/* opt/arena
chmod -R a+rw ${DESTDIR}/opt/arena
case "$XBPS_TARGET_MACHINE" in
armv7l)
printf "#!/bin/sh\ncd /opt/arena\n./Arena_${_arch}_linux \$@\n" > arena
;;
i686)
_arch=i386
printf "#!/bin/sh\ncd /opt/arena\n./Arena_${_arch}_linux \$@\n" > arena
;;
x86_64)
_arch=x86_64
printf "#!/bin/sh\ncd /opt/arena\n./Arena_${_arch}_linux \$@\n" > arena
;;
esac
vbin arena
printf "See http://www.playwitharena.de\n" > LICENSE
vlicense LICENSE
}