From 2bf073866b39c136b87f18636caa2220e1caa74a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A5=93=E6=99=A9?= Date: Mon, 27 May 2024 03:51:05 +0000 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9Epostgresql=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=E5=B7=A5=E5=85=B7zic?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 楓晩 --- thirdparty/tz-main/HPKBUILD | 78 ++++++++++++++++++++++++++++++++++++ thirdparty/tz-main/SHA512SUM | 1 + 2 files changed, 79 insertions(+) create mode 100644 thirdparty/tz-main/HPKBUILD create mode 100644 thirdparty/tz-main/SHA512SUM diff --git a/thirdparty/tz-main/HPKBUILD b/thirdparty/tz-main/HPKBUILD new file mode 100644 index 00000000..23110526 --- /dev/null +++ b/thirdparty/tz-main/HPKBUILD @@ -0,0 +1,78 @@ +# Copyright (c) 2024 Huawei Device Co., Ltd. +# Licensed under the ImageMagick License (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: chenyajie +# Maintainer: huangminzhong + +pkgname=tz-main +pkgver= +pkgrel=0 +pkgdesc="" +url="" +archs=("armeabi-v7a" "arm64-v8a") +license=("BSD 3-clause") +depends=() +makedepends=() + +source="https://codeload.github.com/eggert/tz/zip/refs/heads/main" + +autounpack=true +downloadpackage=true +buildtools="make" + +builddir=$pkgname +packagename=$builddir.zip + +cc= +ar= + +prepare() { + cp -rf $builddir $builddir-$ARCH-build + cd $builddir-$ARCH-build + if [ $ARCH == "arm64-v8a" ] + then + cc=${OHOS_SDK}/native/llvm/bin/aarch64-linux-ohos-clang + ar=${OHOS_SDK}/native/llvm/bin/llvm-ar + ranlib=${OHOS_SDK}/native/llvm/bin/llvm-ranlib + fi + if [ $ARCH == "armeabi-v7a" ] + then + cc=${OHOS_SDK}/native/llvm/bin/arm-linux-ohos-clang + fi + cd $OLDPWD # 1> /dev/null +} + +build() { + cd $builddir-$ARCH-build + export CFLAGS="-g -O2 -DHAVE_GETTEXT=0" + $MAKE CC="${cc} -std=c99" > $buildlog 2>&1 + ret=$? + cd $OLDPWD + return $ret +} + +package() { + cd $builddir-$ARCH-build + $MAKE install PREFIX=$LYCIUM_ROOT/usr/$pkgname/$ARCH >> `pwd`/build.log 2>&1 + cd $OLDPWD +} + +check() { + echo "The test must be on an OpenHarmony device!" + # make check +} + +# 清理环境 +cleanbuild(){ + rm -rf ${PWD}/$builddir $builddir-armeabi-v7a-build $builddir-arm64-v8a-build #${PWD}/$packagename +} diff --git a/thirdparty/tz-main/SHA512SUM b/thirdparty/tz-main/SHA512SUM new file mode 100644 index 00000000..c3d80d71 --- /dev/null +++ b/thirdparty/tz-main/SHA512SUM @@ -0,0 +1 @@ +f89cdfd21e8902277c0e0651576f40d3c6a636b4c8532c1873175e90cb6d62c625772efb26b4f0c8d2fbf3d1357ea2e0943ea4ed3449d3b566387bae410ba2a1 tz-main.zip -- Gitee