From a94765bcfd93a28507465304eed8f675bf4b03e6 Mon Sep 17 00:00:00 2001 From: brooksytech <1673861+brooksytech@users.noreply.github.com> Date: Tue, 2 Apr 2024 13:56:55 +0000 Subject: [PATCH] Add cabextract for wine --- packages/compat/box64/package.mk | 2 +- packages/compress/cabextract/package.mk | 31 +++++++++++++++++++ .../compress/cabextract/patches/package.mk | 13 ++++++++ 3 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 packages/compress/cabextract/package.mk create mode 100644 packages/compress/cabextract/patches/package.mk diff --git a/packages/compat/box64/package.mk b/packages/compat/box64/package.mk index a98cc5ec8..a3ea49407 100644 --- a/packages/compat/box64/package.mk +++ b/packages/compat/box64/package.mk @@ -7,7 +7,7 @@ PKG_ARCH="aarch64" PKG_LICENSE="MIT" PKG_SITE="https://github.com/ptitSeb/box64" PKG_URL="${PKG_SITE}.git" -PKG_DEPENDS_TARGET="toolchain ncurses SDL_sound" +PKG_DEPENDS_TARGET="toolchain ncurses SDL_sound cabextract" PKG_LONGDESC="Box64 lets you run x86_64 Linux programs (such as games) on non-x86_64 Linux systems, like ARM." PKG_TOOLCHAIN="cmake" diff --git a/packages/compress/cabextract/package.mk b/packages/compress/cabextract/package.mk new file mode 100644 index 000000000..230183f29 --- /dev/null +++ b/packages/compress/cabextract/package.mk @@ -0,0 +1,31 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# Copyright (C) 2024-present ROCKNIX (https://github.com/ROCKNIX) + +PKG_NAME="cabextract" +PKG_VERSION="1.11" +PKG_LICENSE="GPLv3" +PKG_SITE="https://www.cabextract.org.uk" +PKG_URL="https://github.com/ROCKNIX/packages/raw/main/cabextract.tar.xz" +PKG_DEPENDS_TARGET="toolchain" +PKG_SHORTDESC="cabextract is Free Software for extracting Microsoft cabinet file" +PKG_TOOLCHAIN="make" + +make_target() { + : +} + + +#unpack() { +# mkdir -p ${PKG_BUILD} +# tar --strip-components=1 -xf ${SOURCES}/${PKG_NAME}/${PKG_NAME}-${PKG_VERSION}.tar.xz -C ${PKG_BUILD} +#} + +makeinstall_target() { + mkdir -p ${INSTALL}/usr/bin + mkdir -p ${INSTALL}/usr/lib + + cp -rf ${PKG_BUILD}/usr/bin/* ${INSTALL}/usr/bin + cp -rf ${PKG_BUILD}/usr/lib/* ${INSTALL}/usr/lib + + chmod +x ${INSTALL}/usr/bin/* +} diff --git a/packages/compress/cabextract/patches/package.mk b/packages/compress/cabextract/patches/package.mk new file mode 100644 index 000000000..e54eafc1a --- /dev/null +++ b/packages/compress/cabextract/patches/package.mk @@ -0,0 +1,13 @@ +diff --git a/config.h.in b/config.h.in +index c2967ec..702df9f 100644 +--- a/config.h.in ++++ b/config.h.in +@@ -180,7 +180,7 @@ + #undef const + + /* Define to rpl_fnmatch if the replacement function should be used. */ +-#undef fnmatch ++//#undef fnmatch + + /* Define to `__inline__' or `__inline' if that's what the C compiler + calls it, or to nothing if 'inline' is not supported under any name. */