fix: move remote unzip patche to local directory

This commit is contained in:
ngn 2024-08-23 12:50:50 +03:00
parent b093628c5a
commit 5b3c74344e
2 changed files with 16736 additions and 10 deletions

View File

@ -1,24 +1,37 @@
NAME="unzip"
DESC="contains ZIP extraction utilities"
VERSION="6.0"
FILES=(
"https://downloads.sourceforge.net/infozip/unzip60.tar.gz"
"https://www.linuxfromscratch.org/patches/blfs/12.0/unzip-$VERSION-consolidated_fixes-1.patch"
"https://downloads.sourceforge.net/infozip/unzip${VERSION/./}.tar.gz"
"unzip-${VERSION}-consolidated_fixes-1.patch"
)
HASHES=(
"62b490407489521db863b523a7f86375"
"02cfd942875ca492c8fd27dff773e633a4f0b9bb47af2c3ad2697e8df8aa79f8"
)
DEPENDS=()
DEPENDS=("bash" "bzip2")
BUILD=()
PACKAGE() {
tar xf $NAME"60.tar.gz"
cd $NAME"60"
tar xf "${NAME}${VERSION/./}.tar.gz"
cd "${NAME}${VERSION/./}"
patch -Np1 -i ../unzip-$VERSION-consolidated_fixes-1.patch
make -f unix/Makefile generic
make prefix=$ROOTDIR/usr MANDIR=$ROOTDIR/usr/share/man/man1 \
-f unix/Makefile install
patch -Np1 -i "../unzip-${VERSION}-consolidated_fixes-1.patch"
cd .. && rm -rf $NAME"60"
DEFINES='-DACORN_FTYPE_NFS -DWILD_STOP_AT_DIR -DLARGE_FILE_SUPPORT \
-DUNICODE_SUPPORT -DUNICODE_WCHAR -DUTF8_MAYBE_NATIVE -DNO_LCHMOD \
-DDATE_FORMAT=DF_YMD -DUSE_BZIP2 -DNOMEMCPY -DNO_WORKING_ISPRINT'
make -f unix/Makefile prefix=/usr \
D_USE_BZ2=-DUSE_BZIP2 L_BZ2=-lbz2 \
LF2="${LDFLAGS}" CF="${CFLAGS} ${CPPFLAGS} -I. ${DEFINES}" \
unzips
make -f unix/Makefile prefix="${ROOTDIR}/usr" \
MANDIR="${ROOTDIR}/usr/share/man/man1" \
install
cd .. && rm -rf "${NAME}${VERSIO/./}"
}

File diff suppressed because it is too large Load Diff