MinHook: Update to v1.3.4 (#24229)

* Update MinHook to 1.3.4.

* Add explicit file name.

* pass CC so clang is used

---------

Co-authored-by: Christoph Reiter <reiter.christoph@gmail.com>
This commit is contained in:
Aetopia
2025-05-10 02:56:49 +05:30
committed by GitHub
parent 4f92ed7ae9
commit 5b97e5350a
2 changed files with 4 additions and 22 deletions

View File

@@ -1,11 +0,0 @@
--- a/build/MinGW/Makefile
+++ b/build/MinGW/Makefile
@@ -17,7 +17,7 @@ all: MinHook.dll libMinHook.dll.a libMinHook.a
libMinHook.a: $(OBJS)
$(AR) r $@ $^
libMinHook.dll.a: MinHook.dll dll_resources/MinHook.def
- $(DLLTOOL) --dllname MinHook.dll --def dll_resources/MinHook.def --output-lib $@
+ $(DLLTOOL) -D MinHook.dll -d dll_resources/MinHook.def -l $@
MinHook.dll: $(OBJS) dll_resources/MinHook.res dll_resources/MinHook.def
$(CCLD) -o $@ -shared $(LDFLAGS) $^

View File

@@ -3,7 +3,7 @@
_realname=MinHook
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=1.3.3
pkgver=1.3.4
pkgrel=2
pkgdesc="The Minimalistic x86/x64 API Hooking Library for Windows (mingw-w64)"
url="https://github.com/TsudaKageyu/minhook"
@@ -11,20 +11,13 @@ license=('BSD')
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64')
makedepends=("${MINGW_PACKAGE_PREFIX}-cc")
source=(${_realname}-${pkgver}.tar.g::"https://github.com/TsudaKageyu/${_realname}/archive/v${pkgver}.tar.gz"
010-dlltool.patch)
sha256sums=('5bec16358ec9086d4593124bf558635e89135abea2c76e5761ecaf09f4546b19'
'535b782019d27ea80b76546ae43d7b7386ef54de70eec5852655a8c7ad3be20c')
prepare() {
cd "${srcdir}/${_realname}-${pkgver}"
patch -p1 -i "${srcdir}/010-dlltool.patch"
}
source=("${_realname}-${pkgver}.tar.gz::https://github.com/TsudaKageyu/${_realname}/archive/v${pkgver}.tar.gz")
sha256sums=('1aebeae4ca898330c507860acc2fca2eb335fe446a3a2b8444c3bf8b2660a14e')
build() {
cd "${srcdir}/${_realname}-${pkgver}"
make -f build/MinGW/Makefile clean
make -f build/MinGW/Makefile
make -f build/MinGW/Makefile CC="${CC}"
}
package() {