Mercurial > vanilla
diff emulation/retroarch/retroarch.sh @ 1216:6710613b88b9
misc: remove build function
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 29 Sep 2021 13:49:32 +0200 |
parents | 7791d3dbfecf |
children | 27d1a83dc8d6 |
line wrap: on
line diff
--- a/emulation/retroarch/retroarch.sh Wed Jul 28 15:24:46 2021 +0200 +++ b/emulation/retroarch/retroarch.sh Wed Sep 29 13:49:32 2021 +0200 @@ -195,54 +195,51 @@ with_zlib="--disable-zlib" fi -build() -{ - rm -rf RetroArch-$PKGVERSION - tar xvf RetroArch-$PKGVERSION.tar.xz - cd RetroArch-$PKGVERSION +rm -rf RetroArch-$PKGVERSION +tar xvf RetroArch-$PKGVERSION.tar.xz +cd RetroArch-$PKGVERSION + +# Disable core updater because they are not binary compatible and +# shipped with Vanilla Linux. +sed -i -e "s|# menu_show_core_updater.*|menu_show_core_updater = false|" retroarch.cfg - # Disable core updater because they are not binary compatible and - # shipped with Vanilla Linux. - sed -i -e "s|# menu_show_core_updater.*|menu_show_core_updater = false|" retroarch.cfg +# Adapt core and their info directories respectively. +sed -i \ + -e "s|# libretro_directory.*|libretro_directory = /lib/libretro|" \ + -e "s|# libretro_info_path.*|libretro_info_path = /share/libretro/info|" retroarch.cfg - # Adapt core and their info directories respectively. - sed -i \ - -e "s|# libretro_directory.*|libretro_directory = /lib/libretro|" \ - -e "s|# libretro_info_path.*|libretro_info_path = /share/libretro/info|" retroarch.cfg - - # Adapt assets directory. - sed -i -e "s|# assets_directory.*|assets_directory = /share/retroarch/assets|" retroarch.cfg +# Adapt assets directory. +sed -i -e "s|# assets_directory.*|assets_directory = /share/retroarch/assets|" retroarch.cfg - # --prefix=/.: does not accept an empty prefix. - CC="$CC" \ - CFLAGS="$CFLAGS" \ - LDFLAGS="$LDFLAGS" \ - PKG_CONF_PATH=/bin/pkgconf \ - ./configure \ - --build=$CBUILD \ - --host=$CHOST \ - --prefix=/. \ - --disable-sdl \ - --disable-systemd \ - $with_alsa \ - $with_dbus \ - $with_ffmpeg \ - $with_jack \ - $with_kms \ - $with_openal \ - $with_opengl \ - $with_pulseaudio \ - $with_qt \ - $with_sdl2 \ - $with_ttf \ - $with_udev \ - $with_usb \ - $with_wayland \ - $with_x \ - $with_zlib - make CC="$CC" CXX="$CXX" - make install DESTDIR=$DESTDIR +# --prefix=/.: does not accept an empty prefix. +CC="$CC" \ +CFLAGS="$CFLAGS" \ +LDFLAGS="$LDFLAGS" \ +PKG_CONF_PATH=/bin/pkgconf \ +./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/. \ + --disable-sdl \ + --disable-systemd \ + $with_alsa \ + $with_dbus \ + $with_ffmpeg \ + $with_jack \ + $with_kms \ + $with_openal \ + $with_opengl \ + $with_pulseaudio \ + $with_qt \ + $with_sdl2 \ + $with_ttf \ + $with_udev \ + $with_usb \ + $with_wayland \ + $with_x \ + $with_zlib +make CC="$CC" CXX="$CXX" +make install DESTDIR=$DESTDIR - cd .. - rm -rf RetroArch-$PKGVERSION -} +cd .. +rm -rf RetroArch-$PKGVERSION