mirror of
https://github.com/linuxdeepin/deepin-music.git
synced 2026-10-16 21:20:47 +08:00
f86a0b5189
- bump version to 7.0.70 Log : bump version to 7.0.70
79 lines
2.0 KiB
YAML
79 lines
2.0 KiB
YAML
# SPDX-FileCopyrightText: 2023 - 2026 UnionTech Software Technology Co., Ltd.
|
|
#
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
version: "1"
|
|
|
|
package:
|
|
id: org.deepin.music
|
|
name: "deepin-music"
|
|
version: 7.0.70.1
|
|
kind: app
|
|
description: |
|
|
music for deepin os.
|
|
|
|
base: org.deepin.base/25.2.2
|
|
# 解决 "Failed to initialize graphics backend for OpenGL."
|
|
runtime: org.deepin.runtime.webengine/6.7.0
|
|
|
|
command:
|
|
- deepin-music
|
|
|
|
build: |
|
|
# 修改路径
|
|
sed -i "s|/usr|$PREFIX|g" src/libdmusic/CMakeLists.txt
|
|
|
|
# 构建
|
|
VERSION=$(head -1 debian/changelog | awk -F'[()]' '{print $2}')
|
|
cmake -B build \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=${PREFIX} \
|
|
-DCMAKE_INSTALL_LIBDIR=${PREFIX}/lib/${TRIPLET} \
|
|
-DAPP_VERSION=${VERSION} \
|
|
-DVERSION=${VERSION}
|
|
cmake --build build -j`nproc`
|
|
cmake --build build --target install > install.log 2>&1
|
|
# 只生成动态加载的兼容链接;版本库由 buildext 或 base/runtime 提供。
|
|
MUSIC_LIBDIR="${PREFIX}/lib/${TRIPLET}"
|
|
mkdir -p "${MUSIC_LIBDIR}"
|
|
for LIB in libvlccore libvlc libSDL2-2.0 libavcodec libavformat libavutil libswresample; do
|
|
LIB_TARGET=
|
|
for VERSIONED in "/runtime/lib/${TRIPLET}/${LIB}.so."* \
|
|
"/usr/lib/${TRIPLET}/${LIB}.so."*; do
|
|
[ -f "${VERSIONED}" ] || continue
|
|
case "${LIB}" in
|
|
libvlccore|libvlc|libSDL2-2.0) LIB_TARGET=${VERSIONED##*/} ;;
|
|
*) LIB_TARGET=${VERSIONED} ;;
|
|
esac
|
|
break
|
|
done
|
|
if [ -z "${LIB_TARGET}" ]; then
|
|
echo "Missing runtime library: ${LIB}" >&2
|
|
exit 1
|
|
fi
|
|
ln -sf "${LIB_TARGET}" "${MUSIC_LIBDIR}/${LIB}.so"
|
|
done
|
|
|
|
buildext:
|
|
apt:
|
|
build_depends:
|
|
- cmake
|
|
- pkg-config
|
|
- libavutil-dev
|
|
- libavcodec-dev
|
|
- libavformat-dev
|
|
- libicu-dev
|
|
- libmpris-qt6-dev
|
|
- libtag1-dev
|
|
- libvlc-dev
|
|
- libvlccore-dev
|
|
- libsdl2-dev
|
|
depends:
|
|
- libvlc5
|
|
- libvlccore9
|
|
- vlc-plugin-base
|
|
- libsdl2-2.0-0
|
|
- libtag1v5
|
|
- libmpris-qt6
|
|
- libavcodec60
|