# Contributor: Danct12 # Maintainer: Danct12 pkgname=fceux pkgver=2.6.5 pkgrel=3 pkgdesc="Fast and ultra-compatible NES/Famicom emulator" url="https://fceux.com" arch="all" license="GPL-2.0-only" makedepends=" cmake ffmpeg-dev lua5.1-dev mesa-dev minizip-dev qt6-qtbase-dev samurai sdl2-dev zlib-dev " subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/TASEmulators/fceux/archive/refs/tags/v$pkgver.tar.gz" options="!check" # no testsuite build() { if [ "$CBUILD" != "$CHOST" ]; then CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" fi case "$CARCH" in aarch64|arm*) # for some reason we have to manually pass this. i guess because # the default is just GL? export CXXFLAGS="$CXXFLAGS -DQT_OPENGL_ES_2" ;; esac cmake -B build -G Ninja \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_SHARED_LIBS=True \ -DCMAKE_BUILD_TYPE=MinSizeRel \ -DQT6=ON \ $CMAKE_CROSSOPTS cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build install -d "$pkgdir/usr/share/doc/$pkgname" cp -r documentation/* "$pkgdir/usr/share/doc/$pkgname/" install -Dm644 changelog.txt -t "$pkgdir/usr/share/doc/$pkgname/" rm -f "$pkgdir/usr/share/$pkgname/"*.dll } sha512sums=" 3d37583d1917783513f05bd215437401aacda3bd1930238212cbbdd6ba105236028066d7198bfd8182e6d55ded7ce293f1e5d23295d2b730ec800dc5e5652598 fceux-2.6.5.tar.gz "