diff options
author | root <root@rshg054.dnsready.net> | 2013-08-13 01:33:19 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-08-13 01:33:19 -0700 |
commit | 7a65a910b77ad191d69881098c47f9b0c852d92e (patch) | |
tree | 9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/fceux | |
parent | 60da6abff6c9577a783d72865f11de7a585e912e (diff) |
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/fceux')
-rw-r--r-- | community/fceux/PKGBUILD | 48 | ||||
-rw-r--r-- | community/fceux/fceux.install | 13 |
2 files changed, 61 insertions, 0 deletions
diff --git a/community/fceux/PKGBUILD b/community/fceux/PKGBUILD new file mode 100644 index 000000000..15050fb34 --- /dev/null +++ b/community/fceux/PKGBUILD @@ -0,0 +1,48 @@ +# $Id: PKGBUILD 93772 2013-07-10 07:27:12Z bpiotrowski $ +# Maintainer: Alexander Rødseth <rodseth@gmail.com> +# Contriutor: Eric Belanger <eric@archlinux.org> +# Contributor: Jo Christian Bergskås <jcberg@gmail.com> + +pkgname=fceux +pkgver=2.2.1.1 +pkgrel=2 +url='http://www.fceux.com/' +pkgdesc='Fast and ultra-compatible NES/Famicom emulator' +arch=('x86_64' 'i686') +license=('GPL') +depends=('sdl' 'gtk2' 'gd' 'desktop-file-utils' 'lua51' 'libgl') +makedepends=('scons' 'mesa-libgl' 'glu') +optdepends=('xchm: for viewing the manual') +install="$pkgname.install" +source=("https://downloads.sourceforge.net/project/fceultra/Source%20Code/2.2.1%20src/$pkgname-$pkgver.src.tar.gz") +sha256sums=('afb0b3b8e1d2eea40c59777ef538b69b16164ae53c406106e541099534db828c') + +build() { + cd "$srcdir/$pkgname-$pkgver" + + msg2 'Compiling...' + scons +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + msg2 'Packaging binaries, data and man-pages...' + scons install --prefix="$pkgdir/usr" + + msg2 'Packaging documentation...' + install -Dm644 "src/drivers/win/help/$pkgname.chm" \ + "$pkgdir/usr/share/doc/$pkgname/$pkgname.chm" + cp -r documentation/* "$pkgdir/usr/share/doc/$pkgname/" + # Removing manpages that are already placed in the right location + rm -f "$pkgdir/usr/share/doc/$pkgname/*.6" + install -Dm644 changelog.txt "$pkgdir/usr/share/doc/$pkgname/" + + msg2 'Packaging desktop shortcut and icon...' + install -Dm644 "$pkgname.desktop" \ + "$pkgdir/usr/share/applications/$pkgname.desktop" + install -Dm644 "$pkgname.png" \ + "$pkgdir/usr/share/pixmaps/$pkgname.png" +} + +# vim:set ts=2 sw=2 et: diff --git a/community/fceux/fceux.install b/community/fceux/fceux.install new file mode 100644 index 000000000..ad97d7bab --- /dev/null +++ b/community/fceux/fceux.install @@ -0,0 +1,13 @@ +post_upgrade() { + update-desktop-database -q +} + +post_install() { + post_upgrade +} + +post_remove() { + post_upgrade +} + +# vim:set ts=2 sw=2 et: |