Add cabextract for wine

This commit is contained in:
brooksytech 2024-04-02 13:56:55 +00:00
parent 4ddf8df730
commit a94765bcfd
No known key found for this signature in database
3 changed files with 45 additions and 1 deletions

View file

@ -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"

View file

@ -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/*
}

View file

@ -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. */