diff options
author | Rafael Cruz | 2019-12-29 00:10:39 -0300 |
---|---|---|
committer | Rafael Cruz | 2019-12-29 00:10:39 -0300 |
commit | 196eba718cfe1ff87d0b086472fc236789bb0321 (patch) | |
tree | 8a33d43fa898d142131512d779a9d97463716e0c | |
download | aur-196eba718cfe1ff87d0b086472fc236789bb0321.tar.gz |
add files
-rw-r--r-- | .SRCINFO | 23 | ||||
-rw-r--r-- | PKGBUILD | 53 |
2 files changed, 76 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..46cb4325cf3b --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +pkgbase = red-ggpo + pkgdesc = New online arcade gaming platform using lastest GGPO technology and netcode. + pkgver = 1 + pkgrel = 1 + url = https://redggpo.com/ + arch = any + license = custom + makedepends = gendesk + makedepends = rsync + makedepends = icoutils + depends = wine + depends = lib32-mpg123 + depends = xdg-utils + depends = gconf + source = red-ggpo.zip::https://raw.githubusercontent.com/han0idx/emu/master/ggfbneo.v01.zip + source = start.sh::https://raw.githubusercontent.com/rafaelcruzpb/red-ggpo-linux/master/start-with-wineprefix.sh + source = icon.png::https://raw.githubusercontent.com/rafaelcruzpb/red-ggpo-linux/master/icon.png + md5sums = SKIP + md5sums = SKIP + md5sums = SKIP + +pkgname = red-ggpo + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9de68545eb39 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,53 @@ +# Maintainer: Rafael Cruz <rafaelcruz at outlook dot com> + +pkgname=red-ggpo +pkgver=1 +pkgrel=1 +pkgdesc='New online arcade gaming platform using lastest GGPO technology and netcode.' +url='https://redggpo.com/' +arch=('any') +license=('custom') +depends=(wine lib32-mpg123 xdg-utils gconf) +makedepends=(gendesk rsync icoutils) +_tmpappfolder="GGFBN" +_execscript="start.sh" +_execapp="ggfbn.exe" +_wineprefix="prefix" +source=( + $pkgname.zip::https://raw.githubusercontent.com/han0idx/emu/master/ggfbneo.v01.zip + $_execscript::https://raw.githubusercontent.com/rafaelcruzpb/red-ggpo-linux/master/start-with-wineprefix.sh + icon.png::https://raw.githubusercontent.com/rafaelcruzpb/red-ggpo-linux/master/icon.png +) +md5sums=( + 'SKIP' + 'SKIP' + 'SKIP' +) + +prepare() { + [ -f "$srcdir/$_execscript" ] && cp "$srcdir/$_execscript" "$srcdir/$_tmpappfolder/$_execscript" + msg "Generating menu shortcut..." + if [ -x /usr/bin/xdg-mime ]; then + mkdir -p $pkgdir/usr/share/applications + echo "[Desktop Entry] +Type=Application +Encoding=UTF-8 +Name=Red GGPO Emulator +Exec=$pkgdir/opt/$pkgname/$_execscript %U +Icon=$pkgname +Terminal=false +MimeType=x-scheme-handler/ggpo + " > $srcdir/$pkgname.desktop + xdg-mime default $pkgname.desktop x-scheme-handler/ggpo + fi +} + +package() { + install -dm755 $HOME/.$pkgname/ + install -dm755 $pkgdir/opt/ + install -Dm644 "$srcdir/icon.png" "$pkgdir/usr/share/pixmaps/$pkgname.png" + install -Dm644 "$srcdir/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop" + msg "Copying files..." + rsync -r --chmod=755 $srcdir/$_tmpappfolder/* $pkgdir/opt/$pkgname/ + chown -R $USER:users $pkgdir/opt/$pkgname/ +} |