From 889ea4b744b2df176c4c03dfc660cb7511f95124 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Fri, 19 Dec 2014 17:19:04 +0000 Subject: menafen: update to 0.9.36.5 --- abs/extra/mednafen/ChangeLog | 9 ----- abs/extra/mednafen/PKGBUILD | 40 +++++++++++++--------- .../mednafen/mednafen-0.8.13.3-zlib-1.2.6.patch | 29 ---------------- 3 files changed, 24 insertions(+), 54 deletions(-) delete mode 100644 abs/extra/mednafen/ChangeLog delete mode 100644 abs/extra/mednafen/mednafen-0.8.13.3-zlib-1.2.6.patch diff --git a/abs/extra/mednafen/ChangeLog b/abs/extra/mednafen/ChangeLog deleted file mode 100644 index 54b01d5..0000000 --- a/abs/extra/mednafen/ChangeLog +++ /dev/null @@ -1,9 +0,0 @@ -2012-02-23 Allan McRae - * Rebuild for libcdio soname bumps - -2011-05-17 Angel Velasquez - * Updated to 0.8.D.3 - * Removed fix_build patch - * Cleaned PKGBUILD - * Adding ChangeLog - diff --git a/abs/extra/mednafen/PKGBUILD b/abs/extra/mednafen/PKGBUILD index 802249f..11948c9 100644 --- a/abs/extra/mednafen/PKGBUILD +++ b/abs/extra/mednafen/PKGBUILD @@ -1,30 +1,38 @@ -# Maintainer: Angel Velasquez +# $Id$ +# Maintainer: Jonathan Steel +# Contributor: megadriver +# Contributor: Angel Velasquez # Contributor: Daenyth # Contributor: kagan +# Contributor: Hans-Kristian Arntzen pkgname=mednafen -pkgver=0.8.D.3 +pkgver=0.9.36.5 pkgrel=2 -pkgdesc="A command-line multi-system gaming emulator" -url="http://mednafen.sourceforge.net/" -license=('GPL') +pkgdesc="Command-line multi-system gaming emulator" +url="http://mednafen.sourceforge.net" +license=('GPL2') arch=('i686' 'x86_64') -depends=('libcdio' 'libsamplerate' 'libogg' 'libvorbis' 'sdl' 'sdl_net' 'libsndfile' 'zlib') -makedepends=('pkgconfig' 'mesa') -changelog=ChangeLog -source=(http://downloads.sourceforge.net/mednafen/$pkgname-$pkgver.tar.bz2 - mednafen-0.8.13.3-zlib-1.2.6.patch) -md5sums=('57d22805071becd81858b0c088a275e5' - '450bb5aa7552db5b8f6d6713bdb725ce') +depends=('libcdio' 'libsndfile' 'sdl' 'zlib') +makedepends=('mesa' 'glu') +source=(http://downloads.sourceforge.net/mednafen/$pkgname-$pkgver.tar.bz2) +md5sums=('a0841f0073322414858c22e247344502') build() { - cd $srcdir/$pkgname - patch -Np1 -i $srcdir/mednafen-0.8.13.3-zlib-1.2.6.patch + cd $pkgname + ./configure --prefix=/usr + make } package() { - cd $srcdir/$pkgname - make DESTDIR=$pkgdir install + cd $pkgname + + make DESTDIR="$pkgdir" install + + for i in ABOUT-NLS AUTHORS ChangeLog COPYING INSTALL NEWS \ + README{,.DOS,.PORTING} TODO; do + install -Dm644 $i "$pkgdir"/usr/share/doc/$pkgname/$i + done } diff --git a/abs/extra/mednafen/mednafen-0.8.13.3-zlib-1.2.6.patch b/abs/extra/mednafen/mednafen-0.8.13.3-zlib-1.2.6.patch deleted file mode 100644 index 9437f76..0000000 --- a/abs/extra/mednafen/mednafen-0.8.13.3-zlib-1.2.6.patch +++ /dev/null @@ -1,29 +0,0 @@ ---- mednafen.orig/src/file.cpp -+++ mednafen/src/file.cpp -@@ -229,7 +229,7 @@ - goto doret; - } - -- while((howmany = gzread(tz, tmp->data + cur_size, cur_alloced - cur_size)) > 0) -+ while((howmany = gzread((gzFile)tz, tmp->data + cur_size, cur_alloced - cur_size)) > 0) - { - cur_size += howmany; - cur_alloced <<= 1; -@@ -282,7 +282,7 @@ - } - else if(type == MDFN_FILETYPE_GZIP) - { -- gzclose(tz); -+ gzclose((gzFile)tz); - } - else if(type == MDFN_FILETYPE_ZIP) - { -@@ -444,7 +444,7 @@ - - if(!(fceufp = MakeMemWrap(t, 1))) - { -- gzclose(t); -+ gzclose((gzFile)t); - return(0); - } - -- cgit v0.12