New package: stepmania-5.0.12

Closes: #4777 [via git-merge-pr]
This commit is contained in:
Michael Aldridge 2016-09-13 02:02:58 -05:00 committed by Toyam Cox
parent 86d0292a36
commit 04fb38b2c1
2 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,14 @@
--- CMakeLists.txt.orig 2016-09-15 01:51:53.168404310 -0500
+++ CMakeLists.txt 2016-09-15 16:00:14.326726871 -0500
@@ -4,6 +4,11 @@
include (StepmaniaCore.cmake)
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CXXFLAGS}")
+set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${LDFLAGS}")
+set(WITH_MINIMAID OFF)
+set(CMAKE_INSTALL_PREFIX "${DESTDIR}/opt")
+
# The external libraries need to be included.
add_subdirectory(extern)

View File

@ -0,0 +1,28 @@
# Template file for 'stepmania'
pkgname=stepmania
version=5.0.12
revision=1
build_style=cmake
cmake_builddir="Build"
hostmakedepends="nasm yasm pkg-config git"
makedepends="libmad-devel libvorbis-devel pcre-devel libjpeg-turbo-devel
alsa-lib-devel libXrandr-devel libva-devel glew-devel"
short_desc="Advanced rhythm game"
maintainer="Michael Aldridge <aldridge.mac@gmail.com>"
license="MIT"
homepage="http://www.stepmania.com/"
distfiles="https://github.com/stepmania/stepmania/archive/v${version}.tar.gz"
checksum=df79bcadd69d4ed60cf560d45386ec275181343495ffd744c3ff8f73c83d4755
# Upstream has stated that only x86 hardware can meed the performance
# constraints and that musl is not supported due to interop issues
# with Windows
only_for_archs="i686 x86_64"
post_install() {
vlicense Docs/Licenses.txt
mkdir -p ${DESTDIR}/usr/bin
cd ${DESTDIR}
ln -sf ../../opt/stepmania-5.0/stepmania usr/bin/
}