ultra fix more and more files
This commit is contained in:
@@ -1,31 +1,21 @@
|
||||
|
||||
set -e
|
||||
|
||||
# Check out the source without the Windows/Mac prebuilts
|
||||
[[ ! -z "$COMMIT" ]] || COMMIT="master"
|
||||
COMMIT="master"
|
||||
echo "Checking out $COMMIT"
|
||||
git clone https://github.com/moonlight-stream/moonlight-qt.git
|
||||
cd moonlight-qt
|
||||
git checkout $COMMIT
|
||||
git log -1
|
||||
git -c submodule.libs.update=none submodule update --init --recursive
|
||||
#git clone https://git.byte-mate.ru/drholy/moonlight-qt.git
|
||||
cd /opt/moonlight-qt
|
||||
#git checkout $COMMIT
|
||||
#git log -1
|
||||
#git -c submodule.libs.update=none submodule update --init --recursive
|
||||
|
||||
ldconfig
|
||||
|
||||
# Grab the verson metadata
|
||||
VERSION=`cat app/version.txt`
|
||||
|
||||
# Determine extra target-specific dependencies
|
||||
if [ "$TARGET" == "rpi" ] || [ "$TARGET" == "rpi64" ]; then
|
||||
EXTRA_CONFIG="CONFIG+=gpuslow CONFIG+=disable-mmal"
|
||||
EXTRA_BUILD_DEPS="libavcodec-dev, libavformat-dev, libswscale-dev,"
|
||||
elif [ "$TARGET" == "l4t" ]; then
|
||||
:
|
||||
elif [ "$TARGET" == "desktop" ]; then
|
||||
EXTRA_BUILD_DEPS="libva-dev, libvdpau-dev,"
|
||||
elif [ "$TARGET" == "embedded" ]; then
|
||||
EXTRA_CONFIG="CONFIG+=gpuslow"
|
||||
else
|
||||
echo "Unrecognized target: $TARGET"
|
||||
exit 1
|
||||
fi
|
||||
EXTRA_CONFIG="CONFIG+=gpuslow"
|
||||
|
||||
# Jammy requires libqt6opengl6-dev to use Qt Quick Controls
|
||||
if [ "$DISTRO" == "jammy" ]; then
|
||||
@@ -65,6 +55,16 @@ sed -i "s/EXTRA_CONFIG/$EXTRA_CONFIG/g" debian/rules
|
||||
cat debian/rules
|
||||
|
||||
# Build the package
|
||||
export DEB_BUILD_OPTIONS="parallel=1"
|
||||
export DEB_CFLAGS_APPEND="-O1"
|
||||
export DEB_CXXFLAGS_APPEND="-O1"
|
||||
# Указываем pkg-config искать библиотеки в папках, куда мы их ставили
|
||||
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib/aarch64-linux-gnu/pkgconfig
|
||||
# Помогаем линковщику найти сами файлы .a / .so
|
||||
export LDFLAGS="-L/usr/local/lib -Wl,-rpath,/usr/local/lib $LDFLAGS"
|
||||
export LIBS="-lharfbuzz $LIBS"
|
||||
export CPPFLAGS="-I/usr/local/include $CPPFLAGS"
|
||||
ldconfig
|
||||
debuild -us -uc
|
||||
|
||||
# Copy the output to the out directory
|
||||
|
||||
Reference in New Issue
Block a user