djstub: new recipe

This commit is contained in:
PulkoMandy
2025-06-22 22:38:28 +02:00
parent b53a4f74d0
commit 6a72b8a55a

View File

@@ -0,0 +1,50 @@
SUMMARY="Go32-compatible stub that supports COFF, PE and ELF payloads"
DESCRIPTION="djstub project provides a dj64-compatible and go32-compatible stubs that support COFF,\
PE and ELF payloads. Its primary target is dj64dev suite, but it can also work with djgpp-built \
executables.
what it does?
- It can stubify or re-stub COFF and PE executables. See djstubify.
- It can link the ELF binaries into a dj64 executables. See djlink.
- It can strip the debug info from dj64 executables. See djstrip."
HOMEPAGE="https://github.com/stsp/djstub"
COPYRIGHT="2024 Stas Sergeev"
LICENSE="GNU GPL v3"
SOURCE_URI="https://github.com/stsp/djstub/archive/refs/tags/0.6.tar.gz"
SOURCE_DIR="$portVersionedName"
CHECKSUM_SHA256="f62ffd3af248c638853acfa06e58ddb59beaf96a14c5d84e8daccfe41120c435"
REVISION="1"
ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="?x86"
PROVIDES="
djstub$secondaryArchSuffix = $portVersion
cmd:djlink
cmd:djstrip
cmd:djstubify
"
REQUIRES="
haiku$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:nasm
cmd:smlrcc
"
BUILD()
{
make $jobArgs
}
INSTALL()
{
make prefix=$prefix install
}