From 67b3716e159494a79de0e42551c2474dc74ca0a2 Mon Sep 17 00:00:00 2001 From: bra1nwave Date: Sun, 21 Feb 2016 20:08:56 +0100 Subject: [PATCH] New package: fceux-2.2.2 --- srcpkgs/fceux/patches/SConstruct.patch | 11 +++++++++++ srcpkgs/fceux/patches/fix-cross-compile.patch | 10 ++++++++++ srcpkgs/fceux/template | 17 +++++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 srcpkgs/fceux/patches/SConstruct.patch create mode 100644 srcpkgs/fceux/patches/fix-cross-compile.patch create mode 100644 srcpkgs/fceux/template diff --git a/srcpkgs/fceux/patches/SConstruct.patch b/srcpkgs/fceux/patches/SConstruct.patch new file mode 100644 index 0000000000..36f2050a3a --- /dev/null +++ b/srcpkgs/fceux/patches/SConstruct.patch @@ -0,0 +1,11 @@ +--- SConstruct.orig ++++ SConstruct +@@ -236,6 +237,6 @@ + env.Alias('install', env.Command(share_dst, share_src, [Copy(share_dst, share_src)])) + env.Alias('install', env.Command(man_dst, man_src, [Copy(man_dst, man_src)])) + env.Alias('install', env.Command(man_net_dst, man_net_src, [Copy(man_net_dst, man_net_src)])) +-env.Alias('install', env.Command(image_dst, image_src, [Copy(image_dst, image_src)])) +-env.Alias('install', env.Command(desktop_dst, desktop_src, [Copy(desktop_dst, desktop_src)])) ++env.Alias('install', env.Command(image_dst, image_src, [Mkdir(image_dst),Copy(image_dst, image_src)])) ++env.Alias('install', env.Command(desktop_dst, desktop_src, [Mkdir(desktop_dst),Copy(desktop_dst, desktop_src)])) + env.Alias('install', (prefix + "/bin/")) diff --git a/srcpkgs/fceux/patches/fix-cross-compile.patch b/srcpkgs/fceux/patches/fix-cross-compile.patch new file mode 100644 index 0000000000..a4caee5bb7 --- /dev/null +++ b/srcpkgs/fceux/patches/fix-cross-compile.patch @@ -0,0 +1,10 @@ +--- SConstruct.orig ++++ SConstruct +@@ -34,6 +34,7 @@ + + prefix = GetOption('prefix') + env = Environment(options = opts) ++env.Append(ENV = {'PATH' : os.environ['PATH']}) + + if env['RELEASE']: + env.Append(CPPDEFINES=["PUBLIC_RELEASE"]) diff --git a/srcpkgs/fceux/template b/srcpkgs/fceux/template new file mode 100644 index 0000000000..511e31b06e --- /dev/null +++ b/srcpkgs/fceux/template @@ -0,0 +1,17 @@ +# Template file for 'fceux' +pkgname=fceux +version=2.2.2 +revision=1 +build_style=scons +hostmakedepends="pkg-config scons" +makedepends="zlib-devel lua51-devel SDL-devel gtk+-devel gd-devel glew-devel gdk-pixbuf-devel" +short_desc="The all in one NES/Famicom Emulator" +maintainer="bra1nwave " +license="GPL-2" +homepage="http://www.fceux.com/" +distfiles="${SOURCEFORGE_SITE}/fceultra/Source%20Code/${version}%20src/${pkgname}-${version}.src.tar.gz" +checksum=804d11bdb4a195f3a580ce5d2d01be877582763378637e16186a22459f5fe5e1 + +do_install() { + scons --prefix=${DESTDIR}/usr install +}