From b8e779dbdc0afbd292c745ddb6f0102cc8ed1979 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BB=E5=8C=97=E5=86=B5=E5=BD=92?= <2692032597@qq.com> Date: Mon, 20 Nov 2023 07:39:37 +0000 Subject: [PATCH] update thirdparty/gettext/HPKBUILD. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 离北况归 <2692032597@qq.com> --- thirdparty/gettext/HPKBUILD | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/thirdparty/gettext/HPKBUILD b/thirdparty/gettext/HPKBUILD index 18dba22e..55e5fc1c 100755 --- a/thirdparty/gettext/HPKBUILD +++ b/thirdparty/gettext/HPKBUILD @@ -11,6 +11,8 @@ # See the License for the specific language governing permissions and # limitations under the License. + + # Contributor: 城meto # Maintainer: 城meto pkgname=gettext @@ -25,15 +27,23 @@ makedepends=() source="https://ftp.gnu.org/pub/gnu/$pkgname/$pkgname-$pkgver.tar.gz" buildtools="configure" + + autounpack=true downloadpackage=true + + builddir=$pkgname-$pkgver packagename=$pkgname-$pkgver.tar.gz + + source envset.sh host= + + prepare() { mkdir $builddir/$ARCH-build if [ $ARCH == "armeabi-v7a" ];then @@ -48,6 +58,11 @@ prepare() { fi } + + + + + build() { cd $builddir/$ARCH-build LDFLAGS="--static $LDFLAGS" CFLAGS="-static -Wno-error=int-conversion $CFLAGS" \ @@ -58,6 +73,9 @@ build() { return $ret } + + + package() { cd $builddir/$ARCH-build make install VERBOSE=1 >> `pwd`/build.log 2>&1 @@ -72,11 +90,15 @@ package() { fi } + + check() { echo "The test must be on an OpenHarmony device!" # TODO } + + # 清理环境 cleanbuild(){ rm -rf ${PWD}/$builddir #${PWD}/$packagename -- Gitee