2020-12-09 18:49:56 +00:00
|
|
|
_realname=ImHex
|
|
|
|
pkgbase=mingw-w64-${_realname}
|
|
|
|
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
|
|
|
|
pkgver=ci
|
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="${_realname}: a Hex Editor for Reverse Engineers, Programmers and people that value their eye sight when working at 3 AM (mingw-w64)"
|
|
|
|
arch=('any')
|
|
|
|
url="https://github.com/WerWolv/ImHex"
|
|
|
|
license=('GPLv2')
|
|
|
|
makedepends=("${MINGW_PACKAGE_PREFIX}-gcc"
|
2022-01-13 20:31:01 +00:00
|
|
|
"${MINGW_PACKAGE_PREFIX}-lld"
|
2020-12-09 18:49:56 +00:00
|
|
|
"${MINGW_PACKAGE_PREFIX}-cmake"
|
|
|
|
"${MINGW_PACKAGE_PREFIX}-make"
|
2021-02-28 14:24:02 +00:00
|
|
|
"${MINGW_PACKAGE_PREFIX}-dlfcn"
|
2020-12-09 18:49:56 +00:00
|
|
|
"${MINGW_PACKAGE_PREFIX}-glfw"
|
|
|
|
"${MINGW_PACKAGE_PREFIX}-file"
|
2021-02-28 14:24:02 +00:00
|
|
|
"${MINGW_PACKAGE_PREFIX}-mbedtls"
|
2020-12-09 18:49:56 +00:00
|
|
|
"${MINGW_PACKAGE_PREFIX}-polly"
|
2021-10-14 19:19:31 +00:00
|
|
|
"${MINGW_PACKAGE_PREFIX}-freetype")
|
2020-12-09 18:49:56 +00:00
|
|
|
|
|
|
|
source=()
|
|
|
|
sha256sums=()
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}"/../..
|
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
export BUILD_TYPE='Release'
|
|
|
|
MSYS2_ARG_CONV_EXCL=- cmake \
|
|
|
|
-G "MinGW Makefiles" \
|
|
|
|
-DCMAKE_INSTALL_PREFIX="${MINGW_PREFIX}" \
|
2021-01-21 14:31:40 +00:00
|
|
|
../../
|
2020-12-09 18:49:56 +00:00
|
|
|
mingw32-make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${srcdir}"/../../build
|
|
|
|
mingw32-make DESTDIR="${pkgdir}" install
|
|
|
|
|
|
|
|
_licenses="${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}"
|
|
|
|
mkdir -p "${_licenses}"
|
|
|
|
install -m 644 ../LICENSE "${_licenses}"
|
|
|
|
}
|