From a5558b03145d016ee4df587fe918398dca95b859 Mon Sep 17 00:00:00 2001 From: wlxuz Date: Sun, 27 Aug 2023 10:54:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9pcre2=E4=B8=8B=E8=BD=BD?= =?UTF-8?q?=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wlxuz --- thirdparty/pcre2/HPKBUILD | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/thirdparty/pcre2/HPKBUILD b/thirdparty/pcre2/HPKBUILD index c1f8998e..766dd749 100755 --- a/thirdparty/pcre2/HPKBUILD +++ b/thirdparty/pcre2/HPKBUILD @@ -10,6 +10,7 @@ # 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: 城meto # Maintainer: 城meto @@ -22,15 +23,24 @@ archs=("armeabi-v7a" "arm64-v8a") license=("BSD license") depends=() makedepends=() -source="https://github.com/PCRE2Project/$pkgname/archive/refs/tags/$pkgver.tar.gz" +# 原仓位置: https://github.com/PCRE2Project/$pkgname/archive/refs/tags/$pkgver.tar.gz, 因网络原因使用镜像 +source="https://gitee.com/lycium_pkg_mirror/pcre2.git" -autounpack=true -downloadpackage=true +autounpack=false +downloadpackage=false +clonesrcflag=true builddir=$pkgname-$pkgver packagename=$pkgname-$pkgver.tar.gz prepare() { + if [ $clonesrcflag == true ];then + git clone -b $pkgver $source $builddir + if [ $? -ne 0 ];then + return -1 + fi + clonesrcflag=false + fi mkdir -p $builddir/$ARCH-build } -- Gitee