mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-01-27 23:44:04 +00:00
community/mame to 0.197-2
This commit is contained in:
parent
ed95f07a8a
commit
36debcf61f
1 changed files with 10 additions and 19 deletions
|
@ -11,7 +11,7 @@ highmem=1
|
|||
|
||||
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)
|
||||
|
@ -48,32 +48,23 @@ package() {
|
|||
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/
|
||||
|
||||
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
|
||||
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/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/
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue