From f9b7fba98223d417c2492b5d69c85192266b7f94 Mon Sep 17 00:00:00 2001 From: dingqian21 <1052888395@qq.com> Date: Mon, 31 Jul 2023 14:24:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=89=E6=96=B9=E5=BA=93md?= =?UTF-8?q?5=E8=80=81=E7=89=88=E6=9C=AC=E4=B8=BAmain=E5=88=86=E6=94=AF.?= =?UTF-8?q?=E6=B2=A1=E6=9C=89commitid=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: dingqian21 <1052888395@qq.com> --- thirdparty/md5-c/HPKBUILD | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/thirdparty/md5-c/HPKBUILD b/thirdparty/md5-c/HPKBUILD index ca3aa57d..103dc9a5 100644 --- a/thirdparty/md5-c/HPKBUILD +++ b/thirdparty/md5-c/HPKBUILD @@ -1,7 +1,7 @@ # Contributor: wupingyuan -# Maintainer: wupingyuan +# Maintainer: dingqian <1052888395@qq.com> pkgname="md5-c" -pkgver="main" +pkgver="f3529b666b7ae8b80b0a9fa88ac2a91b389909c7" pkgrel=0 pkgdesc="A simple, commented reference implementation of the MD5 hash algorithm" url="https://github.com/Zunawe/md5-c" @@ -10,18 +10,35 @@ license=("The Unlicense") depends=() makedepends=() -source="https://github.com/Zunawe/$pkgname/archive/refs/heads/$pkgver.zip" +source="https://github.com/Zunawe/$pkgname.git" -autounpack=true -downloadpackage=true +autounpack=false +downloadpackage=false patchflag=true buildtools="make" builddir=$pkgname-${pkgver} -packagename=$builddir.zip +cloneflag=true cc= ar= prepare() { + if [ $cloneflag == true ] + then + mkdir $builddir + git clone -b main $source $builddir + if [ $? -ne 0 ] + then + return -1 + fi + cd $builddir + git reset --hard $pkgver + if [ $? -ne 0 ] + then + return -2 + fi + cd $OLDPWD + cloneflag=false + fi if $patchflag then cd $builddir -- Gitee