# Contributor: Taner Tas # Maintainer: Taner Tas pkgname=fs-uae # Remember to upgrade fs-uae-launcher to same version of fs-uae pkgver=2.8.4 pkgrel=1 pkgdesc="Amiga emulator." url="https://fs-uae.net/" arch="all !armhf !aarch64 !s390x" # --enable-jit not supported for these arches license="GPL-2.0-only" makedepends="zip clang-dev sdl2-dev libpng-dev libx11-dev libxi-dev openal-soft-dev linux-headers libmpeg2-dev glib-dev" subpackages="$pkgname-lang" source="https://fs-uae.net/stable/${pkgver}/${pkgname}-${pkgver}.tar.gz" options="!check" build() { export CC=clang export CXX=clang++ local _jitoptions= unset CFLAGS CXXFLAGS case "$CARCH" in ppc64le) _jitoptions="--disable-jit" export CFLAGS="-g -O2 -U__ALTIVEC__" export CXXFLAGS="-g -O2 -U__ALTIVEC__" ;; esac cd "$builddir" ./configure \ --build=$CBUILD \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ $_jitoptions \ --enable-sdl2 make } package() { cd "$builddir" make DESTDIR="$pkgdir" install rm -rf "$pkgdir"/usr/share/doc } sha512sums="4fc2c90c87420db2fb3008758b9787416aafd4dbf651d890c16a9c785876b50a00afcb237d7c6bbdda8ec0a1c695d0f1e5a16fce2798347609b04f4d0df5466d fs-uae-2.8.4.tar.gz"