Guest User

Untitled

a guest
Jun 22nd, 2020
80
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. VERSION=$LIBREELEC_VERSION
  2. INSTALLTO="/usr/lib/libretro/"
  3.  
  4. mkdir -p ${INSTALL}${INSTALLTO}
  5.  
  6. if [ "${ARCH}" = "aarch64" ]; then
  7.     mkdir -p ${INSTALL}/usr/bin
  8.     mkdir -p ${INSTALL}/usr/lib32
  9.    
  10.     LIBS="ld-2.*.so.* libarmmem-v7l.* librt.so.* libass.so.* libasound.so.* libopenal.so.* libpulse.so.* libfreetype.so.* \
  11.       libpthread.so.* libudev.so.* libusb-1.0.so.* libGLESv2.so.* libGLESv3*.so.* libSDL2-2.0.so.* libavcodec.so.* libavformat.so.* \
  12.       libavutil.so.56 libswscale.so.5 libswresample.so.3 libdl.so.2 libstdc++.so.6 libm.so.6 libgcc_s.so.1 libc.so.* \
  13.       ld-linux-armhf.so.* libfontconfig.so.* libexpat.so.* libbz2.so.* libz.so.* libpulsecommon-12.* libdbus-1.so.* \
  14.       libdav1d.so.* libspeex.so.* libssl.so.* libcrypto.so.* libsystemd.so.* libdl.so.* libEGL.so.* libMali.* libGLES*.so.* libEGL.so.*"  
  15.     for lib in ${LIBS}
  16.     do
  17.       find $PKG_BUILD/../../build.${DISTRO}-${PROJECT}.arm-${VERSION}/*/.install_pkg -name ${lib} -exec cp -vP \{} ${INSTALL}/usr/lib32/ \;
  18.     done
  19.       cp -vP $PKG_BUILD/../../build.${DISTRO}-${PROJECT}.arm-${VERSION}/retroarch-*/.install_pkg/usr/bin/retroarch ${INSTALL}/usr/bin/retroarch32
  20.       patchelf --set-interpreter /emuelec/lib32/ld-linux-armhf.so.3 ${INSTALL}/usr/bin/retroarch32
  21.       cp -vP $PKG_BUILD/../../build.${DISTRO}-${PROJECT}.arm-${VERSION}/pcsx_rearmed-*/.install_pkg/usr/lib/libretro/pcsx_rearmed_libretro.so ${INSTALL}${INSTALLTO}
  22. else
  23.     cp pcsx_rearmed_libretro.so ${INSTALL}${INSTALLTO}
  24. fi
RAW Paste Data