diff --git a/osslsigncode.sh b/osslsigncode.sh index 32102146e..b504aeaef 100755 --- a/osslsigncode.sh +++ b/osslsigncode.sh @@ -12,9 +12,11 @@ _VER="$1" ( cd "${_NAM}" || exit 0 - gcc -O3 \ - osslsigncode.c helpers.c utf.c msi.c pe.c cab.c cat.c appx.c script.c \ - -o ../osslsigncode-local \ - -DHAVE_SYS_MMAN_H \ - -lcrypto -lz + cmake -B "${_BLDDIR}" + + make --directory="${_BLDDIR}" --jobs="${_JOBS}" install "DESTDIR=$(pwd)/${_PKGDIR}" + + cp -f -p "${_PP}"/bin/osslsigncode ../osslsigncode-local + + ../osslsigncode-local --version )