blob: 86893f0b5dcbd1cea6683ebbb23c2d4f7a023a2e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# $Id: PKGBUILD 86026 2013-03-11 13:34:12Z arodseth $
# 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=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')
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:
|