2022-02-05 14:23:32 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# Copyright (C) 2021-present 351ELEC (https://github.com/351ELEC)
|
|
|
|
|
|
|
|
PKG_NAME="lib32"
|
2022-03-01 22:06:41 +00:00
|
|
|
PKG_VERSION="$(date +%Y%m%d)"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_ARCH="aarch64"
|
|
|
|
PKG_LICENSE="GPLv2"
|
|
|
|
PKG_DEPENDS_TARGET="toolchain retroarch SDL2 libsndfile libmodplug"
|
|
|
|
PKG_SHORTDESC="ARM 32bit bundle for aarch64"
|
|
|
|
PKG_PRIORITY="optional"
|
|
|
|
PKG_TOOLCHAIN="manual"
|
|
|
|
|
|
|
|
makeinstall_target() {
|
|
|
|
cd ${PKG_BUILD}
|
2022-07-13 21:59:42 +00:00
|
|
|
LIBROOT="${ROOT}/build.${DISTRO}-${DEVICE}.arm/image/system/"
|
2022-02-05 14:23:32 +00:00
|
|
|
if [ "${ARCH}" = "aarch64" ]; then
|
2022-07-31 15:12:57 +00:00
|
|
|
mkdir -p ${INSTALL}/usr/lib32/pulseaudio
|
|
|
|
rsync -l ${LIBROOT}/usr/lib/* ${INSTALL}/usr/lib32 >/dev/null 2>&1
|
|
|
|
rsync -l ${LIBROOT}/usr/lib/pulseaudio/* ${INSTALL}/usr/lib32/pulseaudio >/dev/null 2>&1
|
2022-02-05 14:23:32 +00:00
|
|
|
chmod -f +x ${INSTALL}/usr/lib32/* || :
|
|
|
|
fi
|
|
|
|
mkdir -p ${INSTALL}/usr/lib
|
|
|
|
ln -s /usr/lib32/ld-linux-armhf.so.3 ${INSTALL}/usr/lib/ld-linux-armhf.so.3
|
2022-07-30 23:34:43 +00:00
|
|
|
|
|
|
|
mkdir -p "${INSTALL}/etc/ld.so.conf.d"
|
2022-07-31 15:12:57 +00:00
|
|
|
echo "/usr/lib32" > "${INSTALL}/etc/ld.so.conf.d/arm-lib32.conf"
|
|
|
|
echo "/usr/lib32/pulseaudio" >"${INSTALL}/etc/ld.so.conf.d/arm-lib32-pulseaudio.conf"
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|