New package: nestopia-1.45.

This commit is contained in:
Juan RP 2014-05-28 20:49:25 +02:00
parent affa4ab0ca
commit 921fbd6424
2 changed files with 38 additions and 0 deletions

View file

@ -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)

21
srcpkgs/nestopia/template Normal file
View file

@ -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 <xtraeme@gmail.com>"
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
}