1 Star 0 Fork 2

sxc/libmali

forked from RockChipMirror/libmali 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
update_debian.sh 982 Bytes
一键复制 编辑 原始数据 按行查看 历史
Jeffy Chen 提交于 2021-03-10 04:18 . debian: Simplify the install logic
#!/bin/sh
# Generate targets and packages
find lib -type f | sed 's,^lib/,,' > debian/targets
TARGETS=$(cat debian/targets)
PACKAGES=$(cat debian/targets | sed "s/.*\(libmali.*\).so/\1/" | sort | uniq)
rm -f control.*
# NOTE: Assuming multiarch packages could share debian files
for target in $TARGETS; do
export $(./parse_name.sh $target)
package=$name
control=control.$package
if echo $target | grep -q aarch64; then
arch=arm64
else
arch=armhf
fi
# Handle multiarch packages
if [ -e $control ]; then
sed -i "s/\(Architecture:\).*/\1 armhf arm64/" $control
continue
fi
# Generate control files
conflicts="$(echo $PACKAGES | xargs -n 1 | grep -v "$package$")"
cat << EOF > $control
Package: $package
Architecture: $arch
Conflicts: $(echo $conflicts | sed "s/ /, /g")
Depends: \${shlibs:Depends}, \${misc:Depends}
Description: Mali GPU User-Space Binary Drivers
EOF
done
# Generate control
cat debian/control.in control.* > debian/control
rm -f control.*
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/shixiaocheng12138/libmali.git
git@gitee.com:shixiaocheng12138/libmali.git
shixiaocheng12138
libmali
libmali
master

搜索帮助