diff options
-rw-r--r-- | .SRCINFO | 33 | ||||
-rw-r--r-- | Fusion.ini | 3 | ||||
-rw-r--r-- | PKGBUILD | 56 | ||||
-rw-r--r-- | kega-fusion.desktop | 12 | ||||
-rw-r--r-- | kega-fusion.install | 18 | ||||
-rw-r--r-- | kega-fusion.sh | 23 |
6 files changed, 145 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..cb4160d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,33 @@ +pkgbase = kega-fusion + pkgdesc = An emulator of classic Sega consoles, including SMS/GG, Genesis/Megadrive and add-ons + pkgver = 3.63 + pkgrel = 16 + url = http://www.carpeludum.com/kega-fusion + install = kega-fusion.install + arch = i686 + arch = x86_64 + license = custom + makedepends = upx + depends = alsa-lib + depends = glu + depends = libsm + depends = gtk2 + optdepends = lib32-gtk-engines: libclearlooks.so library + options = !strip + source = http://www.carpeludum.com/download/Fusion363x.tar.gz + source = http://trya.alwaysdata.net/linux/Plugins(Linux).tar.gz + source = http://trya.alwaysdata.net/linux/libmpg123.so.0.11.4.gz + source = http://trya.alwaysdata.net/linux/icons/kega-fusion.png + source = kega-fusion.sh + source = kega-fusion.desktop + source = Fusion.ini + md5sums = 9a6f93c2f3bd48ef09a9170e7f0512f4 + md5sums = 6121a37c42026da032386d9d5a5e9c42 + md5sums = 6e9516000e527e025ad9de0b15573a87 + md5sums = 1fdaacf18fb2965fb6f64a769037056b + md5sums = dfe05fd67cc555767b76031885844d9a + md5sums = 5ecf6ba3ef1eff460ee659ef7b6e78db + md5sums = 6d744c098bdf2085fe144ffd2794fe6d + +pkgname = kega-fusion + diff --git a/Fusion.ini b/Fusion.ini new file mode 100644 index 0000000..40542ea --- /dev/null +++ b/Fusion.ini @@ -0,0 +1,3 @@ +ALSADeviceName=default +libmpg123path=/usr/lib/kega-fusion/libmpg123.so.0.11.4 +AlternateTiming=3 diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..9b59e75 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,56 @@ +# Maintainer: trya <tryagainprod@gmail.com> + +pkgname=kega-fusion +pkgver=3.63 +pkgrel=16 +pkgdesc="An emulator of classic Sega consoles, including SMS/GG, Genesis/Megadrive and add-ons" +url="http://www.carpeludum.com/kega-fusion" +license=('custom') +arch=('i686' 'x86_64') +if [ "$CARCH" == "x86_64" ]; then + depends=('lib32-alsa-lib' 'lib32-glu' 'lib32-libsm' 'lib32-gtk2') + optdepends=('lib32-gtk-engines: libclearlooks.so library' + 'lib32-alsa-plugins: for PulseAudio users') +else + depends=('alsa-lib' 'glu' 'libsm' 'gtk2') + optdepends=('gtk-engines: libclearlooks.so library') +fi +makedepends=('upx') +optdepends=('lib32-gtk-engines: libclearlooks.so library') +install="kega-fusion.install" +source=("http://www.carpeludum.com/download/Fusion363x.tar.gz" + "http://trya.alwaysdata.net/linux/Plugins(Linux).tar.gz" + "http://trya.alwaysdata.net/linux/libmpg123.so.0.11.4.gz" + "http://trya.alwaysdata.net/linux/icons/kega-fusion.png" + kega-fusion.sh kega-fusion.desktop Fusion.ini) +md5sums=('9a6f93c2f3bd48ef09a9170e7f0512f4' + '6121a37c42026da032386d9d5a5e9c42' + '6e9516000e527e025ad9de0b15573a87' + '1fdaacf18fb2965fb6f64a769037056b' + 'dfe05fd67cc555767b76031885844d9a' + '5ecf6ba3ef1eff460ee659ef7b6e78db' + '6d744c098bdf2085fe144ffd2794fe6d') +options=(!strip) + +package() { + cd "$srcdir" + + # plugins + install -d "$pkgdir/usr/lib/kega-fusion/plugins" + install -m644 Plugins/*.rpi "$pkgdir/usr/lib/kega-fusion/plugins" + install -m644 libmpg123.so.0.11.4 "$pkgdir/usr/lib/kega-fusion" + + # default configuration and documentation + install -Dm644 Fusion.ini "$pkgdir/usr/share/kega-fusion/Fusion.ini" + install -d "$pkgdir/usr/share/doc/kega-fusion" + install -m644 Fusion/*.txt "$pkgdir/usr/share/doc/kega-fusion" + + # startup script and executable + install -Dm755 kega-fusion.sh "$pkgdir/usr/bin/kega-fusion" + upx -d "$srcdir/Fusion/Fusion" + install -Dm755 Fusion/Fusion "$pkgdir/usr/lib/kega-fusion/kega-fusion" + + # desktop icon + install -Dm644 kega-fusion.desktop "$pkgdir/usr/share/applications/kega-fusion.desktop" + install -Dm644 kega-fusion.png "$pkgdir/usr/share/pixmaps/kega-fusion.png" +} diff --git a/kega-fusion.desktop b/kega-fusion.desktop new file mode 100644 index 0000000..dbaa08d --- /dev/null +++ b/kega-fusion.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Exec=kega-fusion + +Name=Kega Fusion +GenericName=Sega consoles Emulator +GenericName[fr]=Émulateur de consoles Sega +Comment=An emulator of classic Sega consoles +Icon=kega-fusion + +Categories=Game;Emulator; diff --git a/kega-fusion.install b/kega-fusion.install new file mode 100644 index 0000000..8b77094 --- /dev/null +++ b/kega-fusion.install @@ -0,0 +1,18 @@ +post_install() { + echo "" + echo "Some notes:" + echo "-----------" + echo "- Kega expects Fusion.ini to be in '~/.Kega Fusion' and" + echo " the render plugins to be in '~/.Kega Fusion/Plugins'." + echo " This behaviour cannot be changed, so don't forget it" + echo " if you are planning to edit the default paths." + echo "- Some render plugins are provided with this package," + echo " but if you want to use custom plugins, they should be" + echo " placed in '~/.Kega Fusion/Plugins' (user-wide) or in" + echo " '/usr/lib/kega-fusion/plugins' (system-wide)." + echo "" +} + +post_upgrade() { + post_install +} diff --git a/kega-fusion.sh b/kega-fusion.sh new file mode 100644 index 0000000..9e933f4 --- /dev/null +++ b/kega-fusion.sh @@ -0,0 +1,23 @@ +#!/bin/sh + +kega_libdir="/usr/lib/kega-fusion" +kega_sharedir="/usr/share/kega-fusion" +kega_localdir="$HOME/.Kega Fusion" + +# create local plugins directory if not present +mkdir -p "$kega_localdir/Plugins" + +# create links for every included plugin +if [ $(ls -1A $kega_libdir/plugins | wc -l) -gt 0 ]; then + for i in $kega_libdir/plugins/*; do + ln -sf "$i" "$kega_localdir/Plugins/$(basename "$i")" + done +fi + +# copy configuration file if not present +if ! [ -f "$kega_localdir/Fusion.ini" ]; then + cp $kega_sharedir/Fusion.ini "$kega_localdir" +fi + +# here we go! +$kega_libdir/kega-fusion "$@" |