Git Repositories

Stepmania
authorCyrille Pontvieux <jrd@enialis.net>
Sun, 9 Feb 2014 19:12:17 +0000 (20:12 +0100)
committerCyrille Pontvieux <jrd@enialis.net>
Sun, 9 Feb 2014 19:12:17 +0000 (20:12 +0100)
16 files changed:
stepmania/14.1/5-beta2a/README.salix [new file with mode: 0644]
stepmania/14.1/5-beta2a/SLKBUILD [new file with mode: 0644]
stepmania/14.1/5-beta2a/con [new file with mode: 0644]
stepmania/14.1/5-beta2a/dep [new file with mode: 0644]
stepmania/14.1/5-beta2a/makedep [new file with mode: 0644]
stepmania/14.1/5-beta2a/sug [new file with mode: 0644]
stepmania/14.1/fixversion [new file with mode: 0644]
stepmania/14.1/stable [new file with mode: 0644]
stepmania/14.1/version [new file with mode: 0644]
stepmania/arch [new file with mode: 0644]
stepmania/buildschema [new file with mode: 0644]
stepmania/dlurl [new file with mode: 0644]
stepmania/md5sum [new file with mode: 0644]
stepmania/pattern [new file with mode: 0644]
stepmania/schema [new file with mode: 0644]
stepmania/url [new file with mode: 0644]

diff --git a/stepmania/14.1/5-beta2a/README.salix b/stepmania/14.1/5-beta2a/README.salix
new file mode 100644 (file)
index 0000000..a60e5b3
--- /dev/null
@@ -0,0 +1,14 @@
+You can install your custom songs in
+  ~/.local/share/@XDGDIR@/Songs/
+All others data files are in
+  ~/.local/share/@XDGDIR@/
+Your configuration can be found in
+  ~/.config/@XDGDIR/
+Your cache files can be found in
+  ~/.cache/@XDGDIR@/
+
+A smzip binary is provided to you to easy install .smzip files.
+Just pass it as argument or open it with smzip in your file manager.
+
+/!\ Don't try to associate .smzip file with smzip, as there are just regular zip files,
+--- and so all your .zip file will further open with smzip. I bet that's not what your want.
diff --git a/stepmania/14.1/5-beta2a/SLKBUILD b/stepmania/14.1/5-beta2a/SLKBUILD
new file mode 100644 (file)
index 0000000..a5664f6
--- /dev/null
@@ -0,0 +1,102 @@
+# vim: syn=sh ft=sh et sw=2 sts=2 ts=2 tw=0:
+#Packager: Cyrille Pontvieux <jrd~at~salixos~dot~org>
+
+pkgname=stepmania
+pkgver=5.beta2a
+pkgrel=1cp
+
+source=(https://github.com/$pkgname/$pkgname/archive/SM$(echo $pkgver|sed -r 's/^(.)\.(.*)/\1-\2/').tar.gz README.salix)
+sourcetemplate=http://people.salixos.org/jrd/salix/$pkgname/$pkgver-\$arch-$pkgrel/
+docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "README.salix")
+url=http://stepmania.com
+
+slackdesc=\
+(
+#|-----handy-ruler------------------------------------------------------|
+"$pkgname (Danse and Rythm game)"
+"StepMania is a free dance and rhythm game."
+"It features 3D graphics, keyboard and dance pad support, and an editor"
+"for creating your own steps."
+)
+
+build() {
+  cd $SRC/$pkgname-SM$(echo $pkgver|sed -r 's/^(.)\.(.*)/\1-\2/') || return 1
+  # Patch ArchHooks_Unix.cpp to specify correct locations for data, config and cache files
+  xdgdir=$pkgname-$(echo $pkgver|sed -r 's/^(.)\..*/\1/')
+  sed -ri '
+    /^\tRString sUserDataPath/ {
+      s@^\tRString sUserDataPath.*@\tRString sUserDataPath = ssprintf("%s/.local/share/'$xdgdir'", szHome?szHome:".");@;
+      a \
+\tRString sUserCachePath = ssprintf("%s/.cache/'$xdgdir'", szHome?szHome:"."); \
+\tRString sUserConfigPath = ssprintf("%s/.config/'$xdgdir'", szHome?szHome:".");
+      };
+    \@"/Cache"@s@sUserDataPath \+ "/Cache"@sUserCachePath@;
+    \@"/Save"@s@sUserDataPath \+ "/Save"@sUserConfigPath@;
+  ' src/arch/ArchHooks/ArchHooks_Unix.cpp || return 1
+  sed -i "s/@XDGDIR@/$xdgdir/g" $SRC/README.salix
+  ./autogen.sh || return 1
+  ./configure \
+    --prefix=/usr \
+    --libdir=/usr/lib${LIBDIRSUFFIX} \
+    --localstatedir=/var \
+    --sysconfdir=/etc \
+    --enable-lua-binaries \
+    --with-fast-compile \
+    --with-sse2 \
+    --build=$arch-slackware-linux || return 1
+  # lua build requires ncurses that 'configure' didn't put in the Makefile
+  for m in Makefile src/Makefile; do
+    sed -ri 's/^LIBS = (.*)/LIBS = \1 -lncurses/' $m || return 1
+  done
+  # DESTDIR not used in Makefile, so it should be added
+  sed -i '
+    /^install-exec-hook/ {
+      n; s,\$(prefix)/\$(productID),$(DESTDIR)/$(libexecdir)/stepmania,;
+      n; s,\$(prefix)/\$(productID),$(DESTDIR)/$(libexecdir)/stepmania,;
+    };
+    /^install-data-local/ {
+      a \
+\tmkdir -p $(DESTDIR)/$(datadir)/stepmania
+      n; s,\$(prefix)/\$(productID),$(DESTDIR)/$(datadir)/stepmania,;
+      n; s,\$(prefix)/\$(productID),$(DESTDIR)/$(datadir)/stepmania,;
+    };
+  ' Makefile || return 1
+  make -j $numjobs || return 1
+  make install DESTDIR=$PKG || return 1
+  install -d $PKG/usr/bin || return 1
+  cat <<'EOF' > $PKG/usr/bin/$pkgname
+#!/bin/sh
+cd /usr/libexec/stepmania && exec ./stepmania "$@"
+EOF
+  cat <<EOF > $PKG/usr/bin/smzip
+#!/bin/sh
+if [ -z "\$1" ]; then
+  echo "Install a smzip package for Stepmania." >&2
+  echo "Usage: smzip package.smzip" >&2
+  exit 1
+fi
+if ! [ -r "\$1" ] || ! echo "\$1"|grep -q '\.smzip\$'; then
+  notify-send -i error "Stepmania Smzip installer" "<b>\$1</b> is not a smzip readable file"
+  exit 1
+fi
+PKG=\$(readlink -f "\$1")
+NAME=\$(basename "\$PKG")
+cd ~
+mkdir -p .local/share/$xdgdir
+cd .local/share/$xdgdir
+unzip "\$PKG" \
+  && notify-send -i $pkgname-ssc "Stepmania Smzip installer" "<b>\$NAME</b> installed" \
+  || (notify-send -i error "Stepmania Smzip installer" "<b>\$NAME</b> failed"; exit 1)
+EOF
+  chmod +x $PKG/usr/bin/*
+  mkdir -p $PKG/usr/share/applications || return 1
+  cp -r icons $PKG/usr/share/ || return 1
+  install -t $PKG/usr/share/applications $pkgname.desktop || return 1
+  # games group can modify this content. Users should still modify Stepmania using their own ~/.local/share/stepmania-5 directory
+  chown -R :games $PKG/usr/share/stepmania/* || return 1
+  chmod -R g+rwX $PKG/usr/share/stepmania/* || return 1
+  (
+    cd $PKG/usr/libexec/stepmania
+    ln -s ../../share/stepmania/* .
+  )
+}
diff --git a/stepmania/14.1/5-beta2a/con b/stepmania/14.1/5-beta2a/con
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/stepmania/14.1/5-beta2a/dep b/stepmania/14.1/5-beta2a/dep
new file mode 100644 (file)
index 0000000..8c7f79e
--- /dev/null
@@ -0,0 +1 @@
+atk,bzip2,cairo,cxxlibs|gcc-g++,expat,ffmpeg,fontconfig,freetype,gcc,gdk-pixbuf2,glew,glib2,glu,gtk+2,harfbuzz,icu4c,lame,libICE,libSM,libX11,libXau,libXcomposite,libXcursor,libXdamage,libXdmcp,libXext,libXfixes,libXi,libXinerama,libXmu,libXrandr,libXrender,libXt,libXtst,libXxf86vm,libdrm,libffi,libjpeg,libmad,libmodplug,libogg,libpng,libtheora,libvorbis,libvpx,libxcb,mesa,ncurses,opencore-amr,openssl|openssl-solibs,opus,orc,pango,pixman,rtmpdump,schroedinger,speex,udev,util-linux,wavpack,x264,xvidcore,zlib
diff --git a/stepmania/14.1/5-beta2a/makedep b/stepmania/14.1/5-beta2a/makedep
new file mode 100644 (file)
index 0000000..cf0a242
--- /dev/null
@@ -0,0 +1 @@
+automake
diff --git a/stepmania/14.1/5-beta2a/sug b/stepmania/14.1/5-beta2a/sug
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/stepmania/14.1/fixversion b/stepmania/14.1/fixversion
new file mode 100644 (file)
index 0000000..c508d53
--- /dev/null
@@ -0,0 +1 @@
+false
diff --git a/stepmania/14.1/stable b/stepmania/14.1/stable
new file mode 100644 (file)
index 0000000..c508d53
--- /dev/null
@@ -0,0 +1 @@
+false
diff --git a/stepmania/14.1/version b/stepmania/14.1/version
new file mode 100644 (file)
index 0000000..556a49e
--- /dev/null
@@ -0,0 +1 @@
+5-beta2a
diff --git a/stepmania/arch b/stepmania/arch
new file mode 100644 (file)
index 0000000..0702cb5
--- /dev/null
@@ -0,0 +1 @@
+all
diff --git a/stepmania/buildschema b/stepmania/buildschema
new file mode 100644 (file)
index 0000000..e8c05a6
--- /dev/null
@@ -0,0 +1 @@
+configure
diff --git a/stepmania/dlurl b/stepmania/dlurl
new file mode 100644 (file)
index 0000000..3fe734c
--- /dev/null
@@ -0,0 +1 @@
+https://github.com/stepmania/stepmania/releases
diff --git a/stepmania/md5sum b/stepmania/md5sum
new file mode 100644 (file)
index 0000000..d3e204e
--- /dev/null
@@ -0,0 +1 @@
+cc55d0a7797b96c1c30b39b1f2d90c9d
diff --git a/stepmania/pattern b/stepmania/pattern
new file mode 100644 (file)
index 0000000..ed47fdd
--- /dev/null
@@ -0,0 +1 @@
+sed -rn '/\/archive\/SM.*\.tar\.gz.*"nofollow"/{s,.*/archive/SM(.*)\.tar.*,\\1,;s/^v//;p}'|grep -v 'Preview'|sort -rV
diff --git a/stepmania/schema b/stepmania/schema
new file mode 100644 (file)
index 0000000..0d82d79
--- /dev/null
@@ -0,0 +1 @@
+custom
diff --git a/stepmania/url b/stepmania/url
new file mode 100644 (file)
index 0000000..2f27b26
--- /dev/null
@@ -0,0 +1 @@
+http://stepmania.com