From 0e77bf71468d4ded9c048d684da6c6a34cabd9a4 Mon Sep 17 00:00:00 2001 From: ngn Date: Sun, 11 Aug 2024 19:32:02 +0300 Subject: [PATCH] update: c-ares --- src/c-ares/changes.md | 4 ++++ src/c-ares/pkg.sh | 20 ++++++++++++-------- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/src/c-ares/changes.md b/src/c-ares/changes.md index aa59d57..8cfe374 100644 --- a/src/c-ares/changes.md +++ b/src/c-ares/changes.md @@ -1,2 +1,6 @@ +# 1.33.0 +- Updated to 1.33.0 +- Changed source URL to github + # 1.19.1 First version diff --git a/src/c-ares/pkg.sh b/src/c-ares/pkg.sh index ddaad58..97c642c 100644 --- a/src/c-ares/pkg.sh +++ b/src/c-ares/pkg.sh @@ -1,19 +1,23 @@ NAME="c-ares" DESC="C library for asynchronous DNS requests" -VERSION="1.19.1" -FILES=("https://c-ares.haxx.se/download/c-ares-$VERSION.tar.gz") -HASHES=("dafc5825a92dc907e144570e4e75a908") -DEPENDS=() +VERSION="1.33.0" + +FILES=("https://github.com/c-ares/c-ares/archive/refs/tags/v${VERSION}.tar.gz") +HASHES=("3ff8f6f74a4f2b9267d06b4ffc1f082918ae8316c7f37c5a52f1a6e7a9694df7") + +DEPENDS=("glibc") +BUILD=("cmake") PACKAGE() { - tar xf $NAME-$VERSION.tar.gz - cd $NAME-$VERSION + tar xf "v${VERSION}.tar.gz" + cd "${NAME}-${VERSION}" mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=/usr .. - make && make DESTDIR="$ROOTDIR" install + make + make DESTDIR="${ROOTDIR}" install - cd ../.. && rm -r $NAME-$VERSION + cd ../.. && rm -r "${NAME}-${VERSION}" }