You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
2.0 KiB
42 lines
2.0 KiB
name=RetroArch
|
|
version=1.4.1
|
|
update_url="https://github.com/libretro/$name/releases"
|
|
update_names="/archive/v$version.tar.gz"
|
|
|
|
dlextract "https://github.com/libretro/$name/archive/v$version/$name-$version.tar.gz" \
|
|
'a2431adfee081c5cab3c6b7930e5bfab'
|
|
dlfile "https://slackbuilds.org/slackbuilds/14.2/games/$name/disable_core_update.patch.gz" \
|
|
'5c55e7b66e1d1bc38f0bee3813861460'
|
|
header_end
|
|
|
|
cd "$name-$version"
|
|
|
|
# Patch retroarch.cfg to point to the correct directories for cores and other files.
|
|
sed -i -e "/^[# ]*libretro_directory/clibretro_directory = \"$(safe_sed "/$dir_prefix/$dir_libdir/libretro")\"" \
|
|
-e "/^[# ]*libretro_info_path/clibretro_info_path = \"$(safe_sed "/$dir_prefix/$dir_libdir/libretro/info")\"" \
|
|
-e "/^[# ]*audio_filter_dir/caudio_filter_dir = \"$(safe_sed "/$dir_prefix/$dir_libdir/retroarch/filters/audio")\"" \
|
|
-e "/^[# ]*video_filter_dir/cvideo_filter_dir = \"$(safe_sed "/$dir_prefix/$dir_libdir/retroarch/filters/video")\"" \
|
|
-e "/^[# ]*assets_directory/cassets_directory = \"$(safe_sed "/$dir_prefix/$dir_datadir/retroarch/assets")\"" retroarch.cfg
|
|
|
|
# Disable updating of cores
|
|
zcat ../disable_core_update.patch.gz | patch -p1
|
|
|
|
# Custom configure-style script.
|
|
./configure --disable-update_assets --disable-update_cores \
|
|
--prefix="/$dir_prefix" \
|
|
--global-config-dir="/$dir_prefix/$dir_sysconfdir" \
|
|
--with-assets_dir="/$dir_prefix/$dir_datadir" \
|
|
--with-bin_dir="/$dir_prefix/$dir_bindir" \
|
|
--with-man_dir="/$dir_prefix/$dir_mandir"
|
|
|
|
make DESTDIR="$dir_install" install
|
|
|
|
# Compile and install audio filters
|
|
make -C libretro-common/audio/dsp_filters
|
|
install -Dm644 -t "$dir_install/$dir_prefix/$dir_libdir/retroarch/filters/audio" libretro-common/audio/dsp_filters/*.{dsp,so}
|
|
|
|
# Compile and install video filters
|
|
make -C gfx/video_filters
|
|
install -Dm644 -t "$dir_install/$dir_prefix/$dir_libdir/retroarch/filters/video" gfx/video_filters/*.{filt,so}
|
|
|
|
# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab:
|
|
|