Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ungeskriptet/3ba0b9abe807aec6e72ce9ee156180b3 to your computer and use it in GitHub Desktop.
Save ungeskriptet/3ba0b9abe807aec6e72ce9ee156180b3 to your computer and use it in GitHub Desktop.
ITGmania APKBUILD for Alpine Linux
From 118daae7b4c50ec95f0a713521c2dec57993252c Mon Sep 17 00:00:00 2001
From: David Wronek <[email protected]>
Date: Sat, 30 Mar 2024 19:51:00 +0100
Subject: [PATCH 1/3] Remove __assert_fail declaration
This functions causes errors when building on Alpine Linux.
---
src/archutils/Unix/AssertionHandler.cpp | 22 ----------------------
1 file changed, 22 deletions(-)
diff --git a/src/archutils/Unix/AssertionHandler.cpp b/src/archutils/Unix/AssertionHandler.cpp
index 0045fe1e..50c970d1 100644
--- a/src/archutils/Unix/AssertionHandler.cpp
+++ b/src/archutils/Unix/AssertionHandler.cpp
@@ -7,28 +7,6 @@
#endif
#include <assert.h>
-/* We can define this symbol to catch failed assert() calls. This is only used
- * for library code that uses assert(); internally we always use ASSERT, which
- * does this for all platforms, not just glibc. */
-
-extern "C" void __assert_fail( const char *assertion, const char *file, unsigned int line, const char *function ) throw()
-{
- const RString error = ssprintf( "Assertion failure: %s: %s", function, assertion );
-
-#if defined(CRASH_HANDLER)
- Checkpoints::SetCheckpoint( file, line, error );
- sm_crash( assertion );
-#else
- /* It'd be nice to just throw an exception here, but throwing an exception
- * through C code sometimes explodes. */
-
- DoEmergencyShutdown();
-
- _exit(0);
-#endif
-}
-
-
extern "C" void __assert_perror_fail( int errnum, const char *file, unsigned int line, const char *function ) throw()
{
const RString error = ssprintf( "Assertion failure: %s: %s", function, strerror(errnum) );
--
2.44.0
From 348a9e70f27643eb05909151acbb70411a62f835 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9mi=20Denis-Courmont?= <[email protected]>
Date: Sat, 30 Mar 2024 20:47:19 +0100
Subject: [PATCH 2/3] avcodec/x86/mathops: clip constants used with shift
instructions within inline assembly
Fixes assembling with binutil as >= 2.41
Signed-off-by: James Almer <[email protected]>
---
extern/ffmpeg/libavcodec/x86/mathops.h | 26 +++++++++++++++++++++++---
1 file changed, 23 insertions(+), 3 deletions(-)
diff --git a/extern/ffmpeg/libavcodec/x86/mathops.h b/extern/ffmpeg/libavcodec/x86/mathops.h
index 6298f5ed..ca7e2dff 100644
--- a/extern/ffmpeg/libavcodec/x86/mathops.h
+++ b/extern/ffmpeg/libavcodec/x86/mathops.h
@@ -35,12 +35,20 @@
static av_always_inline av_const int MULL(int a, int b, unsigned shift)
{
int rt, dummy;
+ if (__builtin_constant_p(shift))
__asm__ (
"imull %3 \n\t"
"shrdl %4, %%edx, %%eax \n\t"
:"=a"(rt), "=d"(dummy)
- :"a"(a), "rm"(b), "ci"((uint8_t)shift)
+ :"a"(a), "rm"(b), "i"(shift & 0x1F)
);
+ else
+ __asm__ (
+ "imull %3 \n\t"
+ "shrdl %4, %%edx, %%eax \n\t"
+ :"=a"(rt), "=d"(dummy)
+ :"a"(a), "rm"(b), "c"((uint8_t)shift)
+ );
return rt;
}
@@ -113,19 +121,31 @@ __asm__ volatile(\
// avoid +32 for shift optimization (gcc should do that ...)
#define NEG_SSR32 NEG_SSR32
static inline int32_t NEG_SSR32( int32_t a, int8_t s){
+ if (__builtin_constant_p(s))
__asm__ ("sarl %1, %0\n\t"
: "+r" (a)
- : "ic" ((uint8_t)(-s))
+ : "i" (-s & 0x1F)
);
+ else
+ __asm__ ("sarl %1, %0\n\t"
+ : "+r" (a)
+ : "c" ((uint8_t)(-s))
+ );
return a;
}
#define NEG_USR32 NEG_USR32
static inline uint32_t NEG_USR32(uint32_t a, int8_t s){
+ if (__builtin_constant_p(s))
__asm__ ("shrl %1, %0\n\t"
: "+r" (a)
- : "ic" ((uint8_t)(-s))
+ : "i" (-s & 0x1F)
);
+ else
+ __asm__ ("shrl %1, %0\n\t"
+ : "+r" (a)
+ : "c" ((uint8_t)(-s))
+ );
return a;
}
--
2.44.0
From 25e485dbd4f81b47c4b77fdd2dac7cbd5fc2dae6 Mon Sep 17 00:00:00 2001
From: "Azamat H. Hackimov" <[email protected]>
Date: Thu, 6 Jun 2024 17:33:50 +0200
Subject: [PATCH] Fix compilation on GCC-13
GCC-13 changes internal cstdint includes, and now files that uses
standart integer types should directly include cstdint header.
See: https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes
Bug: https://bugs.gentoo.org/865117
Bug: https://bugs.gentoo.org/895440
---
extern/IXWebSocket/ixwebsocket/IXBase64.h | 1 +
extern/IXWebSocket/ixwebsocket/IXBench.h | 2 +-
extern/IXWebSocket/ixwebsocket/IXConnectionState.h | 2 +-
extern/IXWebSocket/ixwebsocket/IXDNSLookup.h | 1 +
extern/IXWebSocket/ixwebsocket/IXHttp.h | 1 +
extern/IXWebSocket/ixwebsocket/IXHttpClient.cpp | 1 +
extern/IXWebSocket/ixwebsocket/IXHttpServer.cpp | 1 +
extern/IXWebSocket/ixwebsocket/IXNetSystem.h | 2 ++
extern/IXWebSocket/ixwebsocket/IXSelectInterrupt.h | 2 +-
extern/IXWebSocket/ixwebsocket/IXSelectInterruptEvent.h | 2 +-
extern/IXWebSocket/ixwebsocket/IXSelectInterruptPipe.h | 1 +
extern/IXWebSocket/ixwebsocket/IXSocket.cpp | 1 -
extern/IXWebSocket/ixwebsocket/IXSocket.h | 1 +
extern/IXWebSocket/ixwebsocket/IXSocketMbedTLS.cpp | 1 +
extern/IXWebSocket/ixwebsocket/IXUuid.cpp | 1 +
extern/IXWebSocket/ixwebsocket/IXWebSocket.h | 1 +
.../IXWebSocket/ixwebsocket/IXWebSocketPerMessageDeflate.cpp | 2 ++
.../ixwebsocket/IXWebSocketPerMessageDeflateCodec.h | 1 +
.../ixwebsocket/IXWebSocketPerMessageDeflateOptions.h | 1 +
extern/IXWebSocket/ixwebsocket/IXWebSocketSendData.h | 5 +++--
extern/IXWebSocket/ixwebsocket/IXWebSocketTransport.cpp | 1 -
extern/IXWebSocket/ixwebsocket/IXWebSocketTransport.h | 1 +
22 files changed, 24 insertions(+), 8 deletions(-)
diff --git a/extern/IXWebSocket/ixwebsocket/IXBase64.h b/extern/IXWebSocket/ixwebsocket/IXBase64.h
index cdfdc04d..56406461 100644
--- a/extern/IXWebSocket/ixwebsocket/IXBase64.h
+++ b/extern/IXWebSocket/ixwebsocket/IXBase64.h
@@ -25,6 +25,7 @@
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
+#include <cstdint>
#include <string>
namespace macaron {
diff --git a/extern/IXWebSocket/ixwebsocket/IXBench.h b/extern/IXWebSocket/ixwebsocket/IXBench.h
index c4f904b7..a0cd1b77 100644
--- a/extern/IXWebSocket/ixwebsocket/IXBench.h
+++ b/extern/IXWebSocket/ixwebsocket/IXBench.h
@@ -6,7 +6,7 @@
#pragma once
#include <chrono>
-#include <stdint.h>
+#include <cstdint>
#include <string>
namespace ix
diff --git a/extern/IXWebSocket/ixwebsocket/IXConnectionState.h b/extern/IXWebSocket/ixwebsocket/IXConnectionState.h
index b7530d0b..aa08d381 100644
--- a/extern/IXWebSocket/ixwebsocket/IXConnectionState.h
+++ b/extern/IXWebSocket/ixwebsocket/IXConnectionState.h
@@ -7,9 +7,9 @@
#pragma once
#include <atomic>
+#include <cstdint>
#include <functional>
#include <memory>
-#include <stdint.h>
#include <string>
namespace ix
diff --git a/extern/IXWebSocket/ixwebsocket/IXDNSLookup.h b/extern/IXWebSocket/ixwebsocket/IXDNSLookup.h
index fcdd103d..4c18a4c3 100644
--- a/extern/IXWebSocket/ixwebsocket/IXDNSLookup.h
+++ b/extern/IXWebSocket/ixwebsocket/IXDNSLookup.h
@@ -12,6 +12,7 @@
#include "IXCancellationRequest.h"
#include <atomic>
+#include <cstdint>
#include <memory>
#include <mutex>
#include <set>
diff --git a/extern/IXWebSocket/ixwebsocket/IXHttp.h b/extern/IXWebSocket/ixwebsocket/IXHttp.h
index 2cf4f29d..c9fc0bfd 100644
--- a/extern/IXWebSocket/ixwebsocket/IXHttp.h
+++ b/extern/IXWebSocket/ixwebsocket/IXHttp.h
@@ -9,6 +9,7 @@
#include "IXProgressCallback.h"
#include "IXWebSocketHttpHeaders.h"
#include <atomic>
+#include <cstdint>
#include <tuple>
#include <unordered_map>
diff --git a/extern/IXWebSocket/ixwebsocket/IXHttpClient.cpp b/extern/IXWebSocket/ixwebsocket/IXHttpClient.cpp
index 00cd9527..a6bcbba4 100644
--- a/extern/IXWebSocket/ixwebsocket/IXHttpClient.cpp
+++ b/extern/IXWebSocket/ixwebsocket/IXHttpClient.cpp
@@ -12,6 +12,7 @@
#include "IXUserAgent.h"
#include "IXWebSocketHttpHeaders.h"
#include <assert.h>
+#include <cstdint>
#include <cstring>
#include <iomanip>
#include <random>
diff --git a/extern/IXWebSocket/ixwebsocket/IXHttpServer.cpp b/extern/IXWebSocket/ixwebsocket/IXHttpServer.cpp
index 563dca91..8d327d3c 100644
--- a/extern/IXWebSocket/ixwebsocket/IXHttpServer.cpp
+++ b/extern/IXWebSocket/ixwebsocket/IXHttpServer.cpp
@@ -10,6 +10,7 @@
#include "IXNetSystem.h"
#include "IXSocketConnect.h"
#include "IXUserAgent.h"
+#include <cstdint>
#include <cstring>
#include <fstream>
#include <sstream>
diff --git a/extern/IXWebSocket/ixwebsocket/IXNetSystem.h b/extern/IXWebSocket/ixwebsocket/IXNetSystem.h
index 96395443..c7f376a4 100644
--- a/extern/IXWebSocket/ixwebsocket/IXNetSystem.h
+++ b/extern/IXWebSocket/ixwebsocket/IXNetSystem.h
@@ -6,6 +6,8 @@
#pragma once
+#include <cstdint>
+
#ifdef _WIN32
#ifndef WIN32_LEAN_AND_MEAN
diff --git a/extern/IXWebSocket/ixwebsocket/IXSelectInterrupt.h b/extern/IXWebSocket/ixwebsocket/IXSelectInterrupt.h
index de6db127..c4fda098 100644
--- a/extern/IXWebSocket/ixwebsocket/IXSelectInterrupt.h
+++ b/extern/IXWebSocket/ixwebsocket/IXSelectInterrupt.h
@@ -6,8 +6,8 @@
#pragma once
+#include <cstdint>
#include <memory>
-#include <stdint.h>
#include <string>
namespace ix
diff --git a/extern/IXWebSocket/ixwebsocket/IXSelectInterruptEvent.h b/extern/IXWebSocket/ixwebsocket/IXSelectInterruptEvent.h
index d965661d..fc8505fa 100644
--- a/extern/IXWebSocket/ixwebsocket/IXSelectInterruptEvent.h
+++ b/extern/IXWebSocket/ixwebsocket/IXSelectInterruptEvent.h
@@ -5,8 +5,8 @@
#pragma once
#include "IXSelectInterrupt.h"
+#include <cstdint>
#include <mutex>
-#include <stdint.h>
#include <string>
#include <deque>
#ifdef _WIN32
diff --git a/extern/IXWebSocket/ixwebsocket/IXSelectInterruptPipe.h b/extern/IXWebSocket/ixwebsocket/IXSelectInterruptPipe.h
index 76689151..26078b2a 100644
--- a/extern/IXWebSocket/ixwebsocket/IXSelectInterruptPipe.h
+++ b/extern/IXWebSocket/ixwebsocket/IXSelectInterruptPipe.h
@@ -7,6 +7,7 @@
#pragma once
#include "IXSelectInterrupt.h"
+#include <cstdint>
#include <mutex>
#include <stdint.h>
#include <string>
diff --git a/extern/IXWebSocket/ixwebsocket/IXSocket.cpp b/extern/IXWebSocket/ixwebsocket/IXSocket.cpp
index dc14bc9d..af604fa5 100644
--- a/extern/IXWebSocket/ixwebsocket/IXSocket.cpp
+++ b/extern/IXWebSocket/ixwebsocket/IXSocket.cpp
@@ -14,7 +14,6 @@
#include <array>
#include <assert.h>
#include <fcntl.h>
-#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/extern/IXWebSocket/ixwebsocket/IXSocket.h b/extern/IXWebSocket/ixwebsocket/IXSocket.h
index d1fa9691..af8bda0b 100644
--- a/extern/IXWebSocket/ixwebsocket/IXSocket.h
+++ b/extern/IXWebSocket/ixwebsocket/IXSocket.h
@@ -7,6 +7,7 @@
#pragma once
#include <atomic>
+#include <cstdint>
#include <functional>
#include <memory>
#include <mutex>
diff --git a/extern/IXWebSocket/ixwebsocket/IXSocketMbedTLS.cpp b/extern/IXWebSocket/ixwebsocket/IXSocketMbedTLS.cpp
index 01f8c870..06a4f251 100644
--- a/extern/IXWebSocket/ixwebsocket/IXSocketMbedTLS.cpp
+++ b/extern/IXWebSocket/ixwebsocket/IXSocketMbedTLS.cpp
@@ -14,6 +14,7 @@
#include "IXNetSystem.h"
#include "IXSocket.h"
#include "IXSocketConnect.h"
+#include <cstdint>
#include <string.h>
#ifdef _WIN32
diff --git a/extern/IXWebSocket/ixwebsocket/IXUuid.cpp b/extern/IXWebSocket/ixwebsocket/IXUuid.cpp
index 0d82ef79..94d0516a 100644
--- a/extern/IXWebSocket/ixwebsocket/IXUuid.cpp
+++ b/extern/IXWebSocket/ixwebsocket/IXUuid.cpp
@@ -16,6 +16,7 @@
#include "IXUuid.h"
+#include <cstdint>
#include <iomanip>
#include <random>
#include <sstream>
diff --git a/extern/IXWebSocket/ixwebsocket/IXWebSocket.h b/extern/IXWebSocket/ixwebsocket/IXWebSocket.h
index 37df88ca..e33cd225 100644
--- a/extern/IXWebSocket/ixwebsocket/IXWebSocket.h
+++ b/extern/IXWebSocket/ixwebsocket/IXWebSocket.h
@@ -21,6 +21,7 @@
#include "IXWebSocketTransport.h"
#include <atomic>
#include <condition_variable>
+#include <cstdint>
#include <mutex>
#include <string>
#include <thread>
diff --git a/extern/IXWebSocket/ixwebsocket/IXWebSocketPerMessageDeflate.cpp b/extern/IXWebSocket/ixwebsocket/IXWebSocketPerMessageDeflate.cpp
index 1c5f1959..d255f490 100644
--- a/extern/IXWebSocket/ixwebsocket/IXWebSocketPerMessageDeflate.cpp
+++ b/extern/IXWebSocket/ixwebsocket/IXWebSocketPerMessageDeflate.cpp
@@ -46,6 +46,8 @@
*
*/
+#include <cstdint>
+
#include "IXWebSocketPerMessageDeflate.h"
#include "IXUniquePtr.h"
diff --git a/extern/IXWebSocket/ixwebsocket/IXWebSocketPerMessageDeflateCodec.h b/extern/IXWebSocket/ixwebsocket/IXWebSocketPerMessageDeflateCodec.h
index 8c0d6b1b..f613e5a2 100644
--- a/extern/IXWebSocket/ixwebsocket/IXWebSocketPerMessageDeflateCodec.h
+++ b/extern/IXWebSocket/ixwebsocket/IXWebSocketPerMessageDeflateCodec.h
@@ -10,6 +10,7 @@
#include "zlib.h"
#endif
#include <array>
+#include <cstdint>
#include <string>
#include <vector>
#include "IXWebSocketSendData.h"
diff --git a/extern/IXWebSocket/ixwebsocket/IXWebSocketPerMessageDeflateOptions.h b/extern/IXWebSocket/ixwebsocket/IXWebSocketPerMessageDeflateOptions.h
index 7cd33c0c..95751b61 100644
--- a/extern/IXWebSocket/ixwebsocket/IXWebSocketPerMessageDeflateOptions.h
+++ b/extern/IXWebSocket/ixwebsocket/IXWebSocketPerMessageDeflateOptions.h
@@ -6,6 +6,7 @@
#pragma once
+#include <cstdint>
#include <string>
namespace ix
diff --git a/extern/IXWebSocket/ixwebsocket/IXWebSocketSendData.h b/extern/IXWebSocket/ixwebsocket/IXWebSocketSendData.h
index 86031aa0..97e76581 100644
--- a/extern/IXWebSocket/ixwebsocket/IXWebSocketSendData.h
+++ b/extern/IXWebSocket/ixwebsocket/IXWebSocketSendData.h
@@ -6,6 +6,7 @@
#pragma once
+#include <cstdint>
#include <string>
#include <vector>
#include <iterator>
@@ -14,7 +15,7 @@ namespace ix
{
/*
* IXWebSocketSendData implements a wrapper for std::string, std:vector<char/uint8_t> and char*.
- * It removes the necessarity to copy the data or string into a std::string
+ * It removes the necessarity to copy the data or string into a std::string
*/
class IXWebSocketSendData {
public:
@@ -125,4 +126,4 @@ namespace ix
const size_t _size;
};
-}
\ No newline at end of file
+}
diff --git a/extern/IXWebSocket/ixwebsocket/IXWebSocketTransport.cpp b/extern/IXWebSocket/ixwebsocket/IXWebSocketTransport.cpp
index 86ec52e8..96e5f17b 100644
--- a/extern/IXWebSocket/ixwebsocket/IXWebSocketTransport.cpp
+++ b/extern/IXWebSocket/ixwebsocket/IXWebSocketTransport.cpp
@@ -45,7 +45,6 @@
#include <cstdarg>
#include <cstdlib>
#include <sstream>
-#include <stdlib.h>
#include <string.h>
#include <string>
#include <thread>
diff --git a/extern/IXWebSocket/ixwebsocket/IXWebSocketTransport.h b/extern/IXWebSocket/ixwebsocket/IXWebSocketTransport.h
index bdfd409f..2c61ad33 100644
--- a/extern/IXWebSocket/ixwebsocket/IXWebSocketTransport.h
+++ b/extern/IXWebSocket/ixwebsocket/IXWebSocketTransport.h
@@ -21,6 +21,7 @@
#include "IXWebSocketSendInfo.h"
#include "IXWebSocketSendData.h"
#include <atomic>
+#include <cstdint>
#include <functional>
#include <list>
#include <memory>
--
2.45.2
# Maintainer: David Wronek <[email protected]>
# Use v3.14 to build this APKBUILD. Latest Alpine makes ITGmania crash because of the header stl_algo.h
pkgname=itgmania
pkgver=0.8.0
pkgrel=0
# Other architectures have not been tested yet
arch="x86_64"
url="https://www.itgmania.com/"
pkgdesc="A fork of StepMania 5.1, improved for the post-ITG community"
license="MIT"
depends="ffmpeg"
makedepends="
alsa-lib-dev
bzip2-dev
cmake
eudev-dev
glu-dev
gtk+3.0-dev
libusb-compat-dev
nasm
pulseaudio-dev
"
# git submodules
_ffmpeg_release="5.0.1"
_ixwebsocket_commit="e417e636053552c31bf1a435e383034dab665924"
_libpng_commit="a40189cf881e9f0db80511c382292a5604c3c3d1"
_libtomcrypt_commit="7e7eb695d581782f04b24dc444cbfde86af59853"
_libtommath_commit="6ca6898bf37f583c4cc9943441cd60dd69f4b8f2"
_mbedtls_commit="869298bffeea13b205343361b7a7daf2b210e33d"
_ogg_commit="e1774cd77f471443541596e09078e78fdc342e4f"
_vorbis_commit="0657aee69dec8508a0011f47f3b69d7538e9d262"
_zlib_commit="21767c654d31d2dccdde4330529775c6c5fd5389"
_simplylove_commit="ee543c85f8e4bd4b146cdaf958d96c4589dc5ed9"
source="
$pkgname-$pkgver.tar.gz::https://github.com/itgmania/itgmania/archive/v$pkgver.tar.gz
ffmpeg.tar.xz::https://ffmpeg.org/releases/ffmpeg-$_ffmpeg_release.tar.xz
ixwebsocket.tar.gz::https://github.com/machinezone/IXWebSocket/archive/$_ixwebsocket_commit.tar.gz
libpng.tar.gz::https://github.com/glennrp/libpng/archive/$_libpng_commit.tar.gz
libtomcrypt.tar.gz::https://github.com/libtom/libtomcrypt/archive/$_libtomcrypt_commit.tar.gz
libtommath.tar.gz::https://github.com/libtom/libtommath/archive/$_libtommath_commit.tar.gz
mbedtls.tar.gz::https://github.com/Mbed-TLS/mbedtls/archive/$_mbedtls_commit.tar.gz
ogg.tar.gz::https://gitlab.xiph.org/xiph/ogg/-/archive/$_ogg_commit/ogg-$_ogg_commit.tar.gz
vorbis.tar.gz::https://gitlab.xiph.org/xiph/vorbis/-/archive/$_vorbis_commit/vorbis-$_vorbis_commit.tar.gz
zlib.tar.gz::https://github.com/madler/zlib/archive/$_zlib_commit.tar.gz
simplylove.tar.gz::https://github.com/Simply-Love/Simply-Love-SM5/archive/$_simplylove_commit.tar.gz
0001-Remove-__assert_fail-declaration.patch
0002-avcodec-x86-mathops-clip-constants-used-with-shift-i.patch
0003-Fix-compilation-on-GCC-13.patch
itgmania
itgmania.desktop
itgmania.svgz
"
# Download itgmania.svgz from https://www.itgmania.com/images/arrow.svg and compress with gzip
prepare() {
rmdir extern/ffmpeg
mv "$srcdir"/ffmpeg-$_ffmpeg_release extern/ffmpeg
rmdir extern/IXWebSocket
mv "$srcdir"/IXWebSocket-$_ixwebsocket_commit extern/IXWebSocket
rmdir extern/libpng
mv "$srcdir"/libpng-$_libpng_commit extern/libpng
rmdir extern/libtomcrypt
mv "$srcdir"/libtomcrypt-$_libtomcrypt_commit extern/libtomcrypt
rmdir extern/libtommath
mv "$srcdir"/libtommath-$_libtommath_commit extern/libtommath
rmdir extern/mbedtls
mv "$srcdir"/mbedtls-$_mbedtls_commit extern/mbedtls
rmdir extern/ogg
mv "$srcdir"/ogg-$_ogg_commit extern/ogg
rmdir extern/vorbis
mv "$srcdir"/vorbis-$_vorbis_commit extern/vorbis
rmdir extern/zlib
mv "$srcdir"/zlib-$_zlib_commit extern/zlib
rmdir "Themes/Simply Love"
mv "$srcdir"/Simply-Love-SM5-$_simplylove_commit "Themes/Simply Love"
default_prepare
}
build() {
cd "$builddir"/Build
cmake -G "Unix Makefiles" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr/share \
..
cmake ..
make
}
package() {
cd "$builddir"/Build
make DESTDIR="$pkgdir" install
install -Dm755 "$srcdir"/itgmania "$pkgdir"/usr/bin/itgmania
install -Dm644 "$srcdir"/itgmania.desktop \
-t "$pkgdir"/usr/share/applications
install -Dm644 "$srcdir"/itgmania.svgz \
-t "$pkgdir"/usr/share/icons/hicolor/scalable/apps
# Remove unused files
rm "$pkgdir"/usr/share/setup.sh
rm "$pkgdir"/usr/share/itgmania/itgmania.desktop
}
sha512sums="
e040561fc46f59fcf59c41d466c3bed2d44f6ba4b62c025623c2f5a54c60c19c17ccffba1f0f353ff7730d8ea05311c1d100a5cc5aab6cb0dd5a314036d1a962 itgmania-0.8.0.tar.gz
e5810c7379748a6bbe1a903bf36b4372b67cb3973179727b6af6f0118eef46f4c990155961cc37255e08a5bafdc4b4683503ad410ebb7afe7a35b891c01fa602 ffmpeg.tar.xz
d138e2ddcf4e35b2ebfa3f2fe106661c870a0b13b153a02ebc41c0e81b99f332c85a5c8b4e958bb1b7880d0ad8800ea96f6c88e9efcd348e37039a47b06f0c82 ixwebsocket.tar.gz
ab309c18548f94fbd2d79cfb37d7817d17525edab29b870a38ca2241c2340c862da5357691405dbfd1e1d36f98c2f1abcc9c945a98625581ec4dd192df33c823 libpng.tar.gz
3b9f92572c0f24f3231e1a3ea57d45cfd8d0bb69543e0ab2161146db570b455ee946374082f7e3ecde0f03a7404d661280e62e9c01d6bd8bb731bb81ff990c69 libtomcrypt.tar.gz
884988e066071b8df22f0a7c58c388cdd2bad65215a74463d876a891101edc28548dda46ffa0ba3b2315e3c1157c6c571834c85abc4144e1bbd2629e151db31c libtommath.tar.gz
49bf05b986746e73900dbe90701c1b8c8319cbf24fe09d5ffb395c33af1f692ccc8ef58e5212da818545541703b9a6843e3ee3cd88fb939fa93f79372a917a2d mbedtls.tar.gz
3d738a89390abed9ba151586b7f65cebedb7131e9b492b052022915ffb937240ca8422507c3609455e323b06dadcbf1a27fc80cdf33c6db17e913039ae66d86f ogg.tar.gz
651ec9965c985946b479b977fe3fde772223f54ae323e75bafc257f51caaabd8124a65153c3d9c3e28637afdad2a9602b97867adad4ef102f812a791484a3946 vorbis.tar.gz
1cb22a13d9ec6801846c784949287bc69080b0923f23c394faea36b3d79a1892c23d2df35aea6168a81c5ddc8df12433e0a7de4d4c3cb03303cdb4fa516a42f9 zlib.tar.gz
f19e94993e45eef6e566803c85f961e514ab0084a89dec16e43b18158076756133e400daaa6dd7f5b1caea4cc9730462677ea0a2f903fbc0e357e392bbed828f simplylove.tar.gz
062e15b577eec0933a2187defbfcc12371c5c6e04b84b0a800a75d3005fee779def18974315a3ef5a76a6ecb1f47052d044594f9edcec36eaa1fb22a99fe38cc 0001-Remove-__assert_fail-declaration.patch
85288ea29ea3fed2963c7fa49b7bd552f73ab7e6385137f645e935872eb6ffcf907be3d95595fbf210ca412e662c3c373a77986cc78dc0c1c000ee18fdbc9ab8 0002-avcodec-x86-mathops-clip-constants-used-with-shift-i.patch
7d6dc1161a4556b8f33260f32177759bdff4fc81769cf2ea22734799d23df5266c0e82f8d67bcfb7ef6d69547da1901d085e904c012c41986b5556e12a0d9135 0003-Fix-compilation-on-GCC-13.patch
7f41c27836d4ae1a64f40f8082d3a93628c1fe57e83519e70b9ed367b1fc74472d9b1e5c724df38d2a831b8090316344f113ad44002975b89e9b28edbb3a9257 itgmania
9473cb4d12466d1526bda5db4606b56c0f37528983ac034de417df32fb28d5f77aec32e6d7942edfc24a85658c02cc29180b3870501cc6ad21ee5d61f7481ca6 itgmania.desktop
dc37f03f42c91ad9b10e519f62422c8a99bce6d0751d2994a55a6396871e156620f47378e8c55dbcfc73b4d0e0f136fea4e261b447fa28fa38e7f1f4ca5f2ccc itgmania.svgz
"
#!/bin/sh
cd /usr/share/itgmania
./itgmania $@
[Desktop Entry]
Name=ITGmania
Type=Application
Comment=A fork of StepMania 5.1, improved for the post-ITG community
Icon=itgmania
Exec=itgmania
Terminal=false
Categories=Game;ArcadeGame;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment