Merge pull request #3949 from libgit2/ethomson/v24-updates

Some CI fixes for the maint/v0.24 branch
diff --git a/script/cibuild.sh b/script/cibuild.sh
index 00cde0a..5707f01 100755
--- a/script/cibuild.sh
+++ b/script/cibuild.sh
@@ -6,6 +6,10 @@
 	exit $?;
 fi
 
+if [ "$TRAVIS_OS_NAME" = "osx" ]; then
+	export PKG_CONFIG_PATH=$(ls -d /usr/local/Cellar/{curl,zlib}/*/lib/pkgconfig | paste -s -d':' -)
+fi
+
 mkdir _build
 cd _build
 # shellcheck disable=SC2086
diff --git a/script/install-deps-osx.sh b/script/install-deps-osx.sh
index 5510379..4b8393b 100755
--- a/script/install-deps-osx.sh
+++ b/script/install-deps-osx.sh
@@ -3,4 +3,6 @@
 set -x
 
 brew update
+brew install homebrew/dupes/zlib
+brew install curl
 brew install libssh2