[arch-commits] Commit in mame/repos/community-x86_64 (4 files)

Antonio Rojas arojas at archlinux.org
Tue Dec 4 22:24:27 UTC 2018


    Date: Tuesday, December 4, 2018 @ 22:24:27
  Author: arojas
Revision: 411232

archrelease: copy trunk to community-x86_64

Added:
  mame/repos/community-x86_64/PKGBUILD
    (from rev 411231, mame/trunk/PKGBUILD)
  mame/repos/community-x86_64/mame.sh
    (from rev 411231, mame/trunk/mame.sh)
Deleted:
  mame/repos/community-x86_64/PKGBUILD
  mame/repos/community-x86_64/mame.sh

----------+
 PKGBUILD |  142 ++++++++++++++++++++++++++++++-------------------------------
 mame.sh  |  103 ++++++++++++++++++++++----------------------
 2 files changed, 123 insertions(+), 122 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-12-04 22:24:00 UTC (rev 411231)
+++ PKGBUILD	2018-12-04 22:24:27 UTC (rev 411232)
@@ -1,71 +0,0 @@
-# Maintainer: Antonio Rojas <arojas at archlinux.org>
-# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Contributor: robb_force <robb_force at holybuffalo.net>
-# Contributor: JJDaNiMoTh <jjdanimoth at gmail.com>
-
-pkgname=mame
-pkgver=0.204
-pkgrel=1
-pkgdesc="A port of the popular Multiple Arcade Machine Emulator using SDL with OpenGL support."
-url="http://mamedev.org/"
-license=(GPL2)
-arch=(x86_64)
-depends=(sdl2_ttf qt5-base lua libutf8proc pugixml portmidi portaudio)
-makedepends=(nasm python asio rapidjson glm libxinerama)
-conflicts=(sdlmame)
-replaces=(sdlmame)
-source=("https://github.com/mamedev/mame/archive/mame${pkgver/./}.tar.gz" mame.sh)
-sha256sums=('eeb6e304502dc1f1ce5a9c73d59a32865fc6e374c14ecef85d85b6de98a76e42'
-            'e97fc02ce0ea615a3a5017b2df7f6041365779319da8beab23d74e4067ce4fe6')
-
-
-prepare() {
-  cd mame-mame${pkgver/./}
-
-# Use system libraries
-  sed -e 's|\# USE_SYSTEM_LIB|USE_SYSTEM_LIB|g' -i makefile
-}
-
-build() {
-  cd mame-mame${pkgver/./}
-  make \
-    NOWERROR=1 \
-    OPTIMIZE=2 \
-    TOOLS=1 \
-    ARCHOPTS=-flifetime-dse=1
-}
-
-package() {
-  cd mame-mame${pkgver/./}
-
-  # Install the mame script
-  install -Dm755 "$srcdir"/$pkgname.sh "$pkgdir"/usr/bin/$pkgname
-
-  # Install the binaries
-  install -Dm755 mame64 "$pkgdir"/usr/lib/mame/mame
-  for _i in castool chdman imgtool jedutil nltool nlwav pngcmp regrep romcmp src2html \
-            split srcclean ldverify ldresample; do
-    install -m755 $_i -t "$pkgdir"/usr/lib/mame
-  done
-
-  # Install the extra bits
-  install -Dm644 src/osd/modules/opengl/shader/glsl*.*h -t "$pkgdir"/usr/lib/$pkgname/shader/
-  cp -ar {artwork,bgfx,plugins,language,ctrlr,keymaps,hash} "$pkgdir"/usr/lib/$pkgname/
-
-  # Include the license
-  install -Dm644 docs/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-
-  # FS#28203
-  sed -i 's|KEYCODE_2_PAD|KEYCODE_2PAD|' "$pkgdir"/usr/lib/mame/ctrlr/*.cfg
-  sed -i 's|KEYCODE_4_PAD|KEYCODE_4PAD|' "$pkgdir"/usr/lib/mame/ctrlr/*.cfg
-  sed -i 's|KEYCODE_6_PAD|KEYCODE_6PAD|' "$pkgdir"/usr/lib/mame/ctrlr/*.cfg
-  sed -i 's|KEYCODE_8_PAD|KEYCODE_8PAD|' "$pkgdir"/usr/lib/mame/ctrlr/*.cfg
-
-  # documentation
-  install -dm0755 "$pkgdir"/usr/share/doc
-  cp -a docs "$pkgdir"/usr/share/doc/$pkgname
-  rm -r "$pkgdir"/usr/share/doc/$pkgname/man
-  install -d "$pkgdir"/usr/share/man/man{1,6}
-  install -m644 docs/man/*.1* "$pkgdir"/usr/share/man/man1/
-  install -m644 docs/man/*.6* "$pkgdir"/usr/share/man/man6/
-}

Copied: mame/repos/community-x86_64/PKGBUILD (from rev 411231, mame/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-12-04 22:24:27 UTC (rev 411232)
@@ -0,0 +1,71 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: robb_force <robb_force at holybuffalo.net>
+# Contributor: JJDaNiMoTh <jjdanimoth at gmail.com>
+
+pkgname=mame
+pkgver=0.204
+pkgrel=2
+pkgdesc="A port of the popular Multiple Arcade Machine Emulator using SDL with OpenGL support."
+url="http://mamedev.org/"
+license=(GPL2)
+arch=(x86_64)
+depends=(sdl2_ttf qt5-base lua libutf8proc pugixml portmidi portaudio)
+makedepends=(nasm python asio rapidjson glm libxinerama)
+conflicts=(sdlmame)
+replaces=(sdlmame)
+source=("https://github.com/mamedev/mame/archive/mame${pkgver/./}.tar.gz" mame.sh)
+sha256sums=('eeb6e304502dc1f1ce5a9c73d59a32865fc6e374c14ecef85d85b6de98a76e42'
+            'da37e17b53759f049234af393bc69c29e1e4aab58df44a9384e7f7160a49db29')
+
+
+prepare() {
+  cd mame-mame${pkgver/./}
+
+# Use system libraries
+  sed -e 's|\# USE_SYSTEM_LIB|USE_SYSTEM_LIB|g' -i makefile
+}
+
+build() {
+  cd mame-mame${pkgver/./}
+  make \
+    NOWERROR=1 \
+    OPTIMIZE=2 \
+    TOOLS=1 \
+    ARCHOPTS=-flifetime-dse=1
+}
+
+package() {
+  cd mame-mame${pkgver/./}
+
+  # Install the mame script
+  install -Dm755 "$srcdir"/$pkgname.sh "$pkgdir"/usr/bin/$pkgname
+
+  # Install the binaries
+  install -Dm755 mame64 "$pkgdir"/usr/lib/mame/mame
+  for _i in castool chdman imgtool jedutil nltool nlwav pngcmp regrep romcmp src2html \
+            split srcclean ldverify ldresample; do
+    install -m755 $_i -t "$pkgdir"/usr/lib/mame
+  done
+
+  # Install the extra bits
+  install -Dm644 src/osd/modules/opengl/shader/glsl*.*h -t "$pkgdir"/usr/lib/$pkgname/shader/
+  cp -ar {artwork,bgfx,plugins,language,ctrlr,keymaps,hash} "$pkgdir"/usr/lib/$pkgname/
+
+  # Include the license
+  install -Dm644 docs/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+  # FS#28203
+  sed -i 's|KEYCODE_2_PAD|KEYCODE_2PAD|' "$pkgdir"/usr/lib/mame/ctrlr/*.cfg
+  sed -i 's|KEYCODE_4_PAD|KEYCODE_4PAD|' "$pkgdir"/usr/lib/mame/ctrlr/*.cfg
+  sed -i 's|KEYCODE_6_PAD|KEYCODE_6PAD|' "$pkgdir"/usr/lib/mame/ctrlr/*.cfg
+  sed -i 's|KEYCODE_8_PAD|KEYCODE_8PAD|' "$pkgdir"/usr/lib/mame/ctrlr/*.cfg
+
+  # documentation
+  install -dm0755 "$pkgdir"/usr/share/doc
+  cp -a docs "$pkgdir"/usr/share/doc/$pkgname
+  rm -r "$pkgdir"/usr/share/doc/$pkgname/man
+  install -d "$pkgdir"/usr/share/man/man{1,6}
+  install -m644 docs/man/*.1* "$pkgdir"/usr/share/man/man1/
+  install -m644 docs/man/*.6* "$pkgdir"/usr/share/man/man6/
+}

Deleted: mame.sh
===================================================================
--- mame.sh	2018-12-04 22:24:00 UTC (rev 411231)
+++ mame.sh	2018-12-04 22:24:27 UTC (rev 411232)
@@ -1,51 +0,0 @@
-#!/bin/sh
-mame=/usr/lib/mame/mame
-
-mame_first_run() {
-  echo "Creating an ini file for MAME at $HOME/.mame/mame.ini"
-  echo "Modify this file for permanent changes to your MAME"
-  echo "options and paths before running MAME again."
-
-  cd -- ~/.mame || exit
-
-  if [ -e mame.ini ]; then
-    mv mame.ini mameini.bak || exit
-    echo "Your old ini file has been renamed to mameini.bak"
-  fi
-
-  # Note: the single quotes here are not a mistake; MAME will save these
-  # strings verbatim into its configuration file, and expand the variables when
-  # it is run in future.
-  "$mame" \
-    -artpath '$HOME/.mame/artwork;artwork' \
-    -ctrlrpath '$HOME/.mame/ctrlr;ctrlr' \
-    -inipath '$HOME/.mame/ini' \
-    -rompath '$HOME/.mame/roms' \
-    -samplepath '$HOME/.mame/samples' \
-    -cfg_directory '$HOME/.mame/cfg' \
-    -comment_directory '$HOME/.mame/comments' \
-    -diff_directory '$HOME/.mame/diff' \
-    -input_directory '$HOME/.mame/inp' \
-    -nvram_directory '$HOME/.mame/nvram' \
-    -snapshot_directory '$HOME/.mame/snap' \
-    -state_directory '$HOME/.mame/sta' \
-    -video opengl \
-    -createconfig
-}
-
-if [ "$1" = "--newini" ]; then
-  mame_first_run
-  exit
-elif ! [ -e ~/.mame ]; then
-  echo "Running MAME for the first time..."
-
-  mkdir -- ~/.mame
-  (
-    cd -- ~/.mame || exit
-    mkdir artwork cfg comments ctrlr diff ini inp nvram samples snap sta roms
-
-    mame_first_run
-  ) || exit
-fi
-
-exec "$mame" "$@"

Copied: mame/repos/community-x86_64/mame.sh (from rev 411231, mame/trunk/mame.sh)
===================================================================
--- mame.sh	                        (rev 0)
+++ mame.sh	2018-12-04 22:24:27 UTC (rev 411232)
@@ -0,0 +1,52 @@
+#!/bin/sh
+mamelib=/usr/lib/mame/
+
+mame_first_run() {
+  echo "Creating an ini file for MAME at $HOME/.mame/mame.ini"
+  echo "Modify this file for permanent changes to your MAME"
+  echo "options and paths before running MAME again."
+
+  cd -- ~/.mame || exit
+
+  if [ -e mame.ini ]; then
+    mv mame.ini mameini.bak || exit
+    echo "Your old ini file has been renamed to mameini.bak"
+  fi
+
+  # Note: the single quotes here are not a mistake; MAME will save these
+  # strings verbatim into its configuration file, and expand the variables when
+  # it is run in future.
+  "$mame" \
+    -artpath '$HOME/.mame/artwork;artwork' \
+    -ctrlrpath '$HOME/.mame/ctrlr;ctrlr' \
+    -inipath '$HOME/.mame/ini' \
+    -rompath '$HOME/.mame/roms' \
+    -samplepath '$HOME/.mame/samples' \
+    -cfg_directory '$HOME/.mame/cfg' \
+    -comment_directory '$HOME/.mame/comments' \
+    -diff_directory '$HOME/.mame/diff' \
+    -input_directory '$HOME/.mame/inp' \
+    -nvram_directory '$HOME/.mame/nvram' \
+    -snapshot_directory '$HOME/.mame/snap' \
+    -state_directory '$HOME/.mame/sta' \
+    -video opengl \
+    -createconfig
+}
+
+if [ "$1" = "--newini" ]; then
+  mame_first_run
+  exit
+elif ! [ -e ~/.mame ]; then
+  echo "Running MAME for the first time..."
+
+  mkdir -- ~/.mame
+  (
+    cd -- ~/.mame || exit
+    mkdir artwork cfg comments ctrlr diff ini inp nvram samples snap sta roms
+
+    mame_first_run
+  ) || exit
+fi
+
+cd "$mamelib"
+exec ./mame "$@"



More information about the arch-commits mailing list