From 5a54e0a093cd01d4787eaf200ba14cfda3bc4b7a Mon Sep 17 00:00:00 2001 From: root Date: Sun, 29 Sep 2013 03:24:08 -0700 Subject: Sun Sep 29 03:20:31 PDT 2013 --- community/fceux/PKGBUILD | 34 +++++++++++++++------------------- community/fceux/fceux.install | 10 ++++++---- 2 files changed, 21 insertions(+), 23 deletions(-) (limited to 'community/fceux') diff --git a/community/fceux/PKGBUILD b/community/fceux/PKGBUILD index 15050fb34..185825bd5 100644 --- a/community/fceux/PKGBUILD +++ b/community/fceux/PKGBUILD @@ -1,44 +1,40 @@ -# $Id: PKGBUILD 93772 2013-07-10 07:27:12Z bpiotrowski $ +# $Id: PKGBUILD 97759 2013-09-28 13:37:37Z arodseth $ # Maintainer: Alexander Rødseth # Contriutor: Eric Belanger # Contributor: Jo Christian Bergskås pkgname=fceux -pkgver=2.2.1.1 -pkgrel=2 +pkgver=2.2.2 +pkgrel=1 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') +depends=('sdl' 'gtk2' 'gd' 'desktop-file-utils' 'lua51' 'libgl' 'shared-mime-info') 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') +install='fceux.install' +source=("https://downloads.sourceforge.net/project/fceultra/Source%20Code/$pkgver%20src/$pkgname-$pkgver.src.tar.gz") +sha256sums=('804d11bdb4a195f3a580ce5d2d01be877582763378637e16186a22459f5fe5e1') build() { - cd "$srcdir/$pkgname-$pkgver" + cd "$pkgname-$pkgver" - msg2 'Compiling...' scons } package() { - cd "$srcdir/$pkgname-$pkgver" + cd "$pkgname-$pkgver" - msg2 'Packaging binaries, data and man-pages...' - scons install --prefix="$pkgdir/usr" + scons install -i --prefix="$pkgdir/usr" - msg2 'Packaging documentation...' - install -Dm644 "src/drivers/win/help/$pkgname.chm" \ - "$pkgdir/usr/share/doc/$pkgname/$pkgname.chm" + # scons install creates usr/share/pixmaps as a regular file, wtf? + rm -f "$pkgdir/usr/share/pixmaps" + + install -d "$pkgdir/usr/share/doc/$pkgname" 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...' + # desktop shortcut install -Dm644 "$pkgname.desktop" \ "$pkgdir/usr/share/applications/$pkgname.desktop" install -Dm644 "$pkgname.png" \ diff --git a/community/fceux/fceux.install b/community/fceux/fceux.install index ad97d7bab..6af331ec0 100644 --- a/community/fceux/fceux.install +++ b/community/fceux/fceux.install @@ -1,13 +1,15 @@ -post_upgrade() { +post_install() { update-desktop-database -q + update-mime-database usr/share/mime &> /dev/null +# xdg-icon-resource forceupdate --theme hicolor &> /dev/null } -post_install() { - post_upgrade +post_upgrade() { + post_install } post_remove() { - post_upgrade + post_install } # vim:set ts=2 sw=2 et: -- cgit v1.2.3-54-g00ecf