# Maintainer: Mike Cuche pkgname=dosbox-x pkgver=2023.03.31 pkgrel=1 pkgdesc="x86 emulator with builtin DOS, with patches with more features" arch=(i686 x86_64 aarch64) url="http://dosbox-x.com" license=(GPL) depends=(fluidsynth libxkbfile libpng libxrandr mesa ffmpeg physfs libslirp libpcap) makedepends=(glu) optdepends=('openglide-git: Third-party 3dfx Glide API support') conflicts=(dosbox-x-git) source=(https://github.com/joncampbell123/dosbox-x/archive/dosbox-x-v${pkgver}.tar.gz) sha256sums=('233f487a90654b03f32b290579f24d5b188a65361b8a7787154f5c4cd8f5f144') build() { cd $srcdir/dosbox-x-dosbox-x-v${pkgver} sed -i -e 's/-j3/-j$(nproc)/g' build # sed -i 's|$LIBS $SDL_LIBS|$LIBS $SDL_LIBS -lm -lGL|' configure.ac #fluidsynth fix ./build } package() { cd $srcdir/dosbox-x-dosbox-x-v${pkgver} make DESTDIR="${pkgdir}" install }