diff --git a/srcpkgs/arena/template b/srcpkgs/arena/template new file mode 100644 index 00000000000..60b77452a07 --- /dev/null +++ b/srcpkgs/arena/template @@ -0,0 +1,59 @@ +# Template file for 'arena' +pkgname=arena +version=1.1 +revision=1 +only_for_archs="armv7l i686 x86_64" +maintainer="cr6git " +short_desc="Free GUI for chess" +license="custom" +restricted=yes +homepage="http://www.playwitharena.com" + +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.com/?Legal_Stuff\n" > LICENSE + vlicense LICENSE +} +