[arch-commits] Commit in mame/trunk (PKGBUILD)

Antonio Rojas arojas at archlinux.org
Tue May 1 07:42:19 UTC 2018


    Date: Tuesday, May 1, 2018 @ 07:42:18
  Author: arojas
Revision: 318554

Move stuff under /usr/lib (FS#58401)

Modified:
  mame/trunk/PKGBUILD

----------+
 PKGBUILD |   29 ++++++++++-------------------
 1 file changed, 10 insertions(+), 19 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-05-01 07:37:57 UTC (rev 318553)
+++ PKGBUILD	2018-05-01 07:42:18 UTC (rev 318554)
@@ -6,7 +6,7 @@
 
 pkgname=mame
 pkgver=0.197
-pkgrel=1
+pkgrel=2
 pkgdesc="A port of the popular Multiple Arcade Machine Emulator using SDL with OpenGL support."
 url="http://mamedev.org/"
 license=(GPL2)
@@ -43,32 +43,23 @@
   done
 
   # Install the extra bits
-  install -d "$pkgdir"/usr/share/$pkgname/{artwork,ctrlr,hash,keymaps,shader}
-  install -d "$pkgdir"/usr/share/man/man1
-  install -d "$pkgdir"/usr/share/man/man6
-  install -m644 src/osd/modules/opengl/shader/glsl*.*h "$pkgdir"/usr/share/$pkgname/shader/
-  install -m644 docs/man/*.1* "$pkgdir"/usr/share/man/man1/
-  install -m644 docs/man/*.6* "$pkgdir"/usr/share/man/man6/
+  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/
 
-  cp -a artwork/* "$pkgdir"/usr/share/$pkgname/artwork/
-  install -m644 ctrlr/* "$pkgdir"/usr/share/$pkgname/ctrlr/
-  install -m644 keymaps/* "$pkgdir"/usr/share/$pkgname/keymaps/
-  install -m644 hash/* "$pkgdir"/usr/share/$pkgname/hash/
-  cp -a bgfx "$pkgdir"/usr/lib/$pkgname/bgfx
-  cp -a plugins "$pkgdir"/usr/share/$pkgname/plugins
-  cp -a language "$pkgdir"/usr/share/$pkgname/language
-
   # 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/share/mame/ctrlr/*.cfg
-  sed -i 's|KEYCODE_4_PAD|KEYCODE_4PAD|' "$pkgdir"/usr/share/mame/ctrlr/*.cfg
-  sed -i 's|KEYCODE_6_PAD|KEYCODE_6PAD|' "$pkgdir"/usr/share/mame/ctrlr/*.cfg
-  sed -i 's|KEYCODE_8_PAD|KEYCODE_8PAD|' "$pkgdir"/usr/share/mame/ctrlr/*.cfg
+  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/
 }



More information about the arch-commits mailing list