blob: a163efe1566d3c351ed0bf2764d783fb16b3e318 (
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
|
# Maintainer: jc_gargma <jc_gargma@iserlohn-fortress.net>
# Maintainer (Arch): Alexander F Rødseth <xyproto@archlinux.org>
# Contriutor (Arch): Eric Belanger <eric@archlinux.org>
# Contributor (Arch): Jo Christian Bergskås <jcberg@gmail.com>
# # I maintain this because:
# Arch version lacks additional optimization and hardening flags
# Arch version uses git
pkgname=fceux
pkgver=2.6.5
pkgrel=1
url='https://fceux.com/'
pkgdesc='Fast and ultra-compatible NES/Famicom emulator'
arch=(x86_64)
license=(GPL)
options=('lto')
depends=(gd lua minizip qt5-base sdl2)
makedepends=(cmake glu mesa-libgl ninja)
optdepends=('ffmpeg: for recording')
source=(fceux-${pkgver}.tar.gz::"https://github.com/TASEmulators/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz")
b2sums=('167fbe401635b96ad0c1c07826b1e7b032fa66806a2c395aebcae9d2b4295a327d2abad960a883751da43baf49f91276dd6521692406ce610df7c1ce167006ca')
build() {
cd ${pkgname}-${pkgname}-${pkgver}
# -fPIC is required to build
export CFLAGS="$CFLAGS -O3 -fPIC"
export CXXFLAGS="$CXXFLAGS -O3 -fPIC"
mkdir -p build
cd build
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-G Ninja
ninja
}
package() {
cd ${pkgname}-${pkgname}-${pkgver}
DESTDIR="$pkgdir" ninja -C build install
install -d "${pkgdir}/usr/share/doc/${pkgname}"
cp -r ${srcdir}/${pkgname}-${pkgname}-${pkgver}/documentation/* "${pkgdir}/usr/share/doc/${pkgname}/"
install -Dm644 $pkgname/changelog.txt \
"$pkgdir/usr/share/doc/$pkgname/changelog.txt"
}
|