diff options
author | Carsten Teibes | 2014-08-18 12:16:10 +0200 |
---|---|---|
committer | Carsten Teibes | 2014-08-18 12:16:10 +0200 |
commit | 38b8037b28632416beec1b8f74b3d9e3ee105e46 (patch) | |
tree | b32391cbfadd058a85cbe1e8c37b21c47406b64b | |
download | aur-38b8037b28632416beec1b8f74b3d9e3ee105e46.tar.gz |
[add] raine 0.63.10
-rw-r--r-- | .SRCINFO | 29 | ||||
-rw-r--r-- | PKGBUILD | 69 |
2 files changed, 98 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..938df59ce4b3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,29 @@ +pkgbase = raine + pkgdesc = A multiple arcade emulator focused on 680x0 machines like NeoCD and Neo Geo + pkgver = 0.63.10 + pkgrel = 2 + url = http://rainemu.swishparty.co.uk + arch = i686 + arch = x86_64 + license = custom + makedepends = nasm + depends = sdl_ttf + depends = sdl_image + depends = sdl_sound + depends = muparser + depends = glu + depends = mesa + optdepends = raine-artwork: additional background graphics for some games + optdepends = raine-emudx: improved graphic and sound files for some classic games + optdepends = arcade-history-dat: database with various information about the loaded rom + provides = neoraine + conflicts = neoraine + replaces = neoraine + options = emptydirs + source = raine-0.63.10.tar.gz::http://rainemu.swishparty.co.uk/cgi-bin/gitweb.cgi?p=raine;a=snapshot;h=a0375f2;sf=tgz + source = http://rainemu.swishparty.co.uk/html/archive/debian/dists/unstable/main/binary-i386/raine_0.63.10_i386.deb + sha256sums = c6f9accd06a843bebbcc7e5a34e0aad1c29ea102eaa46946eeedba2ca565a06a + sha256sums = e6b2f13bf47f241c316f65e8ee3eb9083df4f1a8bb4518885f18db0dbd4d82ca + +pkgname = raine + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..aeee386399d2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,69 @@ +# Maintainer: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG +# Contributor: trya <tryagainprod@gmail.com> +# Contributor: robb_force <robb_force@holybuffalo.net> + +pkgname=raine +pkgver=0.63.10 +_gitver=a0375f2 +pkgrel=2 +pkgdesc="A multiple arcade emulator focused on 680x0 machines like NeoCD and Neo Geo" +url="http://rainemu.swishparty.co.uk" +license=('custom') +arch=('i686' 'x86_64') +provides=('neoraine') +conflicts=('neoraine') +replaces=('neoraine') +depends=('sdl_ttf' 'sdl_image' 'sdl_sound' 'muparser' 'glu' 'mesa') +makedepends=('nasm') +if [ "$CARCH" == "x86_64" ]; then + depends=('lib32-sdl_ttf' 'lib32-sdl_image' 'lib32-sdl_sound' 'lib32-muparser' 'lib32-glu' 'lib32-mesa') + makedepends+=('gcc-multilib') +fi +optdepends=('raine-artwork: additional background graphics for some games' + 'raine-emudx: improved graphic and sound files for some classic games' + 'arcade-history-dat: database with various information about the loaded rom') +source=(raine-$pkgver.tar.gz::"$url/cgi-bin/gitweb.cgi?p=raine;a=snapshot;h=$_gitver;sf=tgz" + "$url/html/archive/debian/dists/unstable/main/binary-i386/raine_${pkgver}_i386.deb") +sha256sums=('c6f9accd06a843bebbcc7e5a34e0aad1c29ea102eaa46946eeedba2ca565a06a' + 'e6b2f13bf47f241c316f65e8ee3eb9083df4f1a8bb4518885f18db0dbd4d82ca') +options=('emptydirs') + +prepare() { + cd "$srcdir" + mkdir -p raine-bin + bsdtar xf data.tar.xz -C raine-bin + + cd raine-$_gitver + # copy bitmaps and fonts from raine's deb package + cp -r "$srcdir"/raine-bin/usr/share/games/raine/bitmaps . + cp -r "$srcdir"/raine-bin/usr/share/games/raine/fonts . + + # adapt folder structure to arch standards + sed 's|$(prefix)/games|\$(prefix)/bin|;s|$(prefix)/share/games|\$(prefix)/share|' -i makefile + sed 's|share/games/raine|share/raine|' -i source/sdl/dialogs/about.cpp source/raine.c + + # -O3 optimizations cause segfaults, use -O2 instead + sed 's|-O3|-O2|g' -i makefile + + # link to the dynamic library of SDL_sound + sed 's|LIBS += /usr/local/lib/libSDL_sound.a -lFLAC -logg -lspeex -lmikmod -lvorbisfile -lmodplug|LIBS += -lSDL_sound|' -i makefile + + # 'detect-cpu' script does not recognize most recent cpus, use generic optimizing + echo "_MARCH=-march=${CARCH/x86_64/x86-64} -mtune=generic" > cpuinfo + echo "CPU=generic" >> cpuinfo +} + +build() { + make -C "$srcdir"/raine-$_gitver #VERBOSE=1 +} + +package() { + cd "$srcdir"/raine-$_gitver + make DESTDIR="$pkgdir" install + # doc + license + install -d "$pkgdir"/usr/share/{doc,licenses}/raine + install -m644 docs/* changes/* "$pkgdir"/usr/share/doc/raine + head -n5 source/raine.c > "$pkgdir"/usr/share/licenses/raine/LICENSE + # symlink neoraine, both projects have been merged + ln -s raine "$pkgdir"/usr/bin/neoraine +} |