1 # Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
2 # Contributor: Eric Belanger <eric@archlinux.org>
3 # Contributor: Jo Christian Bergskås <jcberg@gmail.com>
8 pkgdesc='Fast and ultra-compatible NES/Famicom emulator'
10 url='https://github.com/TASEmulators/fceux'
12 depends=(gd lua minizip qt5-base sdl2)
13 makedepends=(cmake git glu mesa-libgl ninja setconf scons)
14 optdepends=('ffmpeg: for recording')
15 source=("git+$url#commit=ea6ed69b874e3ae94072f1b4f14b9a8f0fdd774b") # tag: v2.6.5
20 sed -i 's/-interim git//g' src/version.h
21 setconf scripts/genGitHdr.sh GIT_URL "'""${source:4:34}""'"
22 setconf scripts/genGitHdr.sh GIT_REV "${source#*=}"
28 -D CMAKE_C_FLAGS="$CFLAGS -fPIC -w" \
29 -D CMAKE_CXX_FLAGS="$CXXFLAGS -fPIC -w" \
30 -D CMAKE_INSTALL_PREFIX=/usr \
37 DESTDIR="$pkgdir" ninja -C build install
38 install -d "$pkgdir/usr/share/doc/$pkgname"
39 cp -r $pkgname/documentation/* "$pkgdir/usr/share/doc/$pkgname/"
40 install -Dm644 $pkgname/changelog.txt \
41 "$pkgdir/usr/share/doc/$pkgname/changelog.txt"