From 8511c70e33214c105aaf0b42b33919dc44558dac Mon Sep 17 00:00:00 2001 From: lxh Date: Thu, 14 Nov 2024 18:54:54 +0800 Subject: [PATCH 1/2] =?UTF-8?q?1.cppcodec-0.1=E5=BA=93=E7=9A=84hpkbuild?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E7=9A=84=E4=BB=A3=E7=A0=81=E8=A7=84=E8=8C=83?= =?UTF-8?q?=202.=E4=BF=AE=E6=94=B9=E4=B8=BAgitee=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lxh --- thirdparty/cppcodec-0.1/HPKBUILD | 10 +++++----- thirdparty/cppcodec-0.1/SHA512SUM | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/thirdparty/cppcodec-0.1/HPKBUILD b/thirdparty/cppcodec-0.1/HPKBUILD index ac1996e7..32f52fec 100644 --- a/thirdparty/cppcodec-0.1/HPKBUILD +++ b/thirdparty/cppcodec-0.1/HPKBUILD @@ -23,14 +23,13 @@ archs=("armeabi-v7a" "arm64-v8a") license=("MIT License") depends=() makedepends=() -source="https://github.com/tplgy/cppcodec/archive/refs/tags/v0.1.zip" - +source="https://gitee.com/lycium_pkg_mirror/cppcodec/repository/archive/v0.1" downloadpackage=true autounpack=true buildtools=cmake patchflag=true -builddir=cppcodec-0.1 +builddir=cppcodec-v0.1 packagename=cppcodec-v0.1.zip # 为编译设置环境,如设置环境变量,创建编译目录等 @@ -51,7 +50,8 @@ prepare() { build() { cd $builddir - ${OHOS_SDK}/native/build-tools/cmake/bin/cmake "$@" -DCMAKE_C_FLAGS="-Wno-unused-command-line-argument" \ + PKG_CONFIG_LIBDIR="${pkgconfigpath}" ${OHOS_SDK}/native/build-tools/cmake/bin/cmake "$@" \ + -DCMAKE_C_FLAGS="-Wno-unused-command-line-argument" \ -DCMAKE_CXX_FLAGS="-Wno-unused-command-line-argument" -B$ARCH-build -S./ > $buildlog 2>&1 $MAKE VERBOSE=1 -C $ARCH-build >> $buildlog 2>&1 ret=$? @@ -61,7 +61,7 @@ build() { package() { cd $builddir - $MAKE -C $ARCH-build install >> $buildlog 2>&1 + $MAKE VERBOSE=1 -C $ARCH-build install >> $buildlog 2>&1 cd $OLDPWD } diff --git a/thirdparty/cppcodec-0.1/SHA512SUM b/thirdparty/cppcodec-0.1/SHA512SUM index 6dc161d7..35b3739e 100644 --- a/thirdparty/cppcodec-0.1/SHA512SUM +++ b/thirdparty/cppcodec-0.1/SHA512SUM @@ -1 +1 @@ -4a583b4e69f3c879736f5c87c77e8af663a223655650d5d230952c7148c0c1e7a6f2fb18ccc7a556740e6bce8a527f725395ee6f4a4c50498fc659758f82d46a cppcodec-v0.1.zip \ No newline at end of file +a9743b639f48a0f215b2a46d502ba0eae43569dae8dbb35292882cb939da71431c582940faf4e1a845abff34e6b3c14896d7569dd0bfa9d5361ab77536469be5 cppcodec-v0.1.zip -- Gitee From ab8f36eda2b7e40dc67548ea123766579b1588c1 Mon Sep 17 00:00:00 2001 From: lxh Date: Fri, 15 Nov 2024 03:52:55 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=9D=E7=95=99=E5=8E=9F=E6=9C=89?= =?UTF-8?q?=E7=9A=84github=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lxh --- thirdparty/cppcodec-0.1/HPKBUILD | 1 + 1 file changed, 1 insertion(+) diff --git a/thirdparty/cppcodec-0.1/HPKBUILD b/thirdparty/cppcodec-0.1/HPKBUILD index 32f52fec..f82fd329 100644 --- a/thirdparty/cppcodec-0.1/HPKBUILD +++ b/thirdparty/cppcodec-0.1/HPKBUILD @@ -23,6 +23,7 @@ archs=("armeabi-v7a" "arm64-v8a") license=("MIT License") depends=() makedepends=() +#source="https://github.com/tplgy/cppcodec/archive/refs/tags/v0.1.zip" source="https://gitee.com/lycium_pkg_mirror/cppcodec/repository/archive/v0.1" downloadpackage=true autounpack=true -- Gitee