Could someone please build this on anything other than x86 or x64 (like a Pi or something like that). I know cross-compile exists, but for some reason, it doesn't cross compile even to x86 on x64 (have no idea why... I added glib-devel
to hostdepends
), but it does build in a native x86 envronment. So, my guess is, it will build natively on most environments, but I'm not sure... hence, asking for help.
# Template file for 'DIE'
pkgname=DIE
version=3.09
revision=1
build_style=cmake
create_wrksrc=yes
hostmakedepends="cmake qt5 qt5-qmake qt5-plugin-mysql qt5-plugin-odbc
qt5-plugin-pgsql qt5-plugin-sqlite qt5-plugin-tds glib-devel"
makedepends="base-devel qt5-devel qt5-tools-devel qt5-script-devel qt5-svg-devel
yara-devel"
short_desc="DIE (Detect It Easy) is a program for determining types of files"
maintainer="MechDR <[email protected]>"
license="MIT"
homepage="https://github.com/horsicq/Detect-It-Easy"
distfiles="https://github.com/horsicq/DIE-engine/releases/download/${version}/die_sourcecode_${version}.tar.gz"
checksum="eb458c5fbc3d06abf04c552ca20e0d0cfcf36540c2f0962feb79e2f4ea65bc12"
post_extract() {
cp -a "die_sourcecode_${version}"/* .
rm -rf "die_sourcecode_${version}"
}
pre_configure() {
sed -i '/"Linux")/a \ \ \ \ set (CMAKE_INSTALL_PREFIX "/usr")' CMakeLists.txt
chmod a+x configure
}
do_build() {
mkdir -p build
cmake . -G Ninja -B build
cd build
ninja -j 4
}