From 921fbd64248818ce4d8792685006528103c320d5 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 28 May 2014 20:49:25 +0200 Subject: [PATCH] New package: nestopia-1.45. --- srcpkgs/nestopia/patches/install.patch | 17 +++++++++++++++++ srcpkgs/nestopia/template | 21 +++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 srcpkgs/nestopia/patches/install.patch create mode 100644 srcpkgs/nestopia/template diff --git a/srcpkgs/nestopia/patches/install.patch b/srcpkgs/nestopia/patches/install.patch new file mode 100644 index 00000000000..1c36b0c2b61 --- /dev/null +++ b/srcpkgs/nestopia/patches/install.patch @@ -0,0 +1,17 @@ +--- Makefile 2013-01-20 20:10:25.000000000 +0400 ++++ Makefile 2013-01-21 15:18:54.727577673 +0400 +@@ -197,11 +197,11 @@ + install -m 0644 NstDatabase.xml $(DATADIR) + install -m 0644 source/unix/icons/*.png $(DATADIR)/icons + install -m 0644 source/unix/icons/*.svg $(DATADIR)/icons +- install -m 0644 source/unix/icons/nestopia.svg $(PREFIX)/share/pixmaps +- xdg-desktop-menu install --novendor $(DATADIR)/nestopia.desktop ++ install -m 0644 source/unix/icons/nestopia.svg $(PREFIX)/share/pixmaps/nestopia.svg ++ install -Dm0644 $(DATADIR)/nestopia.desktop $(PREFIX)/share/applications/nestopia.desktop + + uninstall: +- xdg-desktop-menu uninstall $(DATADIR)/nestopia.desktop ++ rm $(PREFIX)/share/applications/nestopia.desktop + rm $(PREFIX)/share/pixmaps/nestopia.svg + rm $(BINDIR)/$(BIN) + rm -rf $(DATADIR) diff --git a/srcpkgs/nestopia/template b/srcpkgs/nestopia/template new file mode 100644 index 00000000000..1f92655550a --- /dev/null +++ b/srcpkgs/nestopia/template @@ -0,0 +1,21 @@ +# Template file for 'nestopia' +pkgname=nestopia +version=1.45 +revision=1 +wrksrc="rdanbrook-nestopia-59c9928" +build_style=gnu-makefile +make_build_args="PREFIX=/usr" +hostmakedepends="pkg-config" +makedepends="SDL-devel alsa-lib-devel gtk+3-devel glu-devel libarchive-devel desktop-file-utils" +depends="desktop-file-utils" +short_desc="NES/Famicom emulator designed to emulate the NES hardware accurately" +maintainer="Juan RP " +license="GPL-2" +homepage="http://nestopia.sourceforge.net/" +distfiles="https://github.com/rdanbrook/nestopia/tarball/${version}>${pkgname}-${version}.tar.gz" +checksum=0a9152a60bc72bdaed853a756b822ac48fd6d4b3463436a873d5f46d785e641f + +do_install() { + mkdir -p ${DESTDIR}/usr/{bin,share/$pkgname} + make PREFIX=${DESTDIR}/usr install +}