diff --git a/community/pulseaudio/HPKBUILD b/community/pulseaudio/HPKBUILD index 4ee220de4391050310fe47ee0f29fdb8bca7150f..e4cb93dfae699f6e6e6c5359ff9aec64ff0a3980 100644 --- a/community/pulseaudio/HPKBUILD +++ b/community/pulseaudio/HPKBUILD @@ -10,7 +10,10 @@ archs=("armeabi-v7a" "arm64-v8a") license=("LGPLv2.1") depends=("libsndfile" "libatomic_ops" "speexdsp" "json-c" "gettext" "check" "fftw3" "gdbm") makedepends=("meson" "ninja") -source="git://anongit.freedesktop.org/$pkgname/$pkgname" + +# 官网提供的两个地址,其中一个不行可以更换为另一个 +# source="git://anongit.freedesktop.org/$pkgname/$pkgname" +source="http://anongit.freedesktop.org/git/$pkgname/$pkgname.git" downloadpackage=false autounpack=false diff --git a/community/speechd/OAT.xml b/community/speechd/OAT.xml deleted file mode 100644 index 03ee5a760a1f17e2e86907647046114696ade760..0000000000000000000000000000000000000000 --- a/community/speechd/OAT.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/community/speechd/HPKBUILD b/thirdparty/speechd/HPKBUILD similarity index 100% rename from community/speechd/HPKBUILD rename to thirdparty/speechd/HPKBUILD diff --git a/thirdparty/speechd/HPKCHECK b/thirdparty/speechd/HPKCHECK new file mode 100644 index 0000000000000000000000000000000000000000..b2868bd604c7d7a35e1576aaa826a6c7aa80207f --- /dev/null +++ b/thirdparty/speechd/HPKCHECK @@ -0,0 +1,38 @@ +# Copyright (c) 2023 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Contributor: huangminzhong +# Maintainer: huangminzhong + +source HPKBUILD > /dev/null 2>&1 +logfile=${LYCIUM_THIRDPARTY_ROOT}/${pkgname}/${pkgname}_${ARCH}_${OHOS_SDK_VER}_test.log + +openharmonycheck() { + res=0 + + cd ${builddir}/${ARCH}-build/src/tests + + # run_test为执行测试脚本,若sed语句报错,可能会改变环境变量LD_LIBRARY_PATH的值,导致run_test执行失败 + # 可以尝试直接执行.libs/run_test basic.test 或者 更换sed版本 + ../../run-speechd > ${logfile} 2>&1 && ./run_test basic.test >> ${logfile} 2>&1 + res=$? + if [ $res -ne 0 ]; then + echo "test failed" >> ${logfile} 2>&1 + cd $OLDPWD + return $res + fi + + echo "test pass" >> ${logfile} 2>&1 + cd $OLDPWD + return $res +} diff --git a/community/speechd/README.OpenSource b/thirdparty/speechd/README.OpenSource similarity index 100% rename from community/speechd/README.OpenSource rename to thirdparty/speechd/README.OpenSource diff --git a/community/speechd/README_zh.md b/thirdparty/speechd/README_zh.md similarity index 100% rename from community/speechd/README_zh.md rename to thirdparty/speechd/README_zh.md diff --git a/community/speechd/SHA512SUM b/thirdparty/speechd/SHA512SUM similarity index 100% rename from community/speechd/SHA512SUM rename to thirdparty/speechd/SHA512SUM diff --git a/community/speechd/docs/hap_integrate.md b/thirdparty/speechd/docs/hap_integrate.md similarity index 100% rename from community/speechd/docs/hap_integrate.md rename to thirdparty/speechd/docs/hap_integrate.md diff --git a/community/speechd/docs/pic/install_dir.png b/thirdparty/speechd/docs/pic/install_dir.png similarity index 100% rename from community/speechd/docs/pic/install_dir.png rename to thirdparty/speechd/docs/pic/install_dir.png diff --git a/community/speechd/docs/pic/test_result1.png b/thirdparty/speechd/docs/pic/test_result1.png similarity index 100% rename from community/speechd/docs/pic/test_result1.png rename to thirdparty/speechd/docs/pic/test_result1.png diff --git a/community/speechd/docs/pic/test_result2.png b/thirdparty/speechd/docs/pic/test_result2.png similarity index 100% rename from community/speechd/docs/pic/test_result2.png rename to thirdparty/speechd/docs/pic/test_result2.png diff --git a/community/speechd/speechd_ohos.patch b/thirdparty/speechd/speechd_ohos.patch similarity index 100% rename from community/speechd/speechd_ohos.patch rename to thirdparty/speechd/speechd_ohos.patch