From 39e63c3e44c60a091019a7fcb15e450358dc41be Mon Sep 17 00:00:00 2001 From: Matheus Date: Tue, 30 Jun 2026 22:34:15 -0300 Subject: [PATCH] ports: unzip --- recipes/unzip | 24 ++++++++++++++++++++++++ source-recipes/unzip | 10 ++++++++++ 2 files changed, 34 insertions(+) create mode 100644 recipes/unzip create mode 100644 source-recipes/unzip diff --git a/recipes/unzip b/recipes/unzip new file mode 100644 index 00000000..e17eee3a --- /dev/null +++ b/recipes/unzip @@ -0,0 +1,24 @@ +name=unzip +revision=1 +from_source=unzip +imagedeps="build-essential" +hostdeps="xgcc xbinutils" +deps="base" + +build() { + cp -rp ${source_dir}/* . + make -f unix/Makefile generic1 \ + CC=x86_64-astral-gcc \ + LD=x86_64-astral-gcc \ + AS=x86_64-astral-as \ + STRIP=x86_64-astral-strip \ + CF="-O2 -I. -include utime.h -DUNIX -DSYSV -DMODERN -DGOT_UTIMBUF -DNO_LCHMOD" \ + LF2="" +} + +package() { + make -f unix/Makefile install \ + prefix=${prefix} \ + BINDIR=${dest_dir}${prefix}/bin \ + MANDIR=${dest_dir}${prefix}/share/man/man1 +} diff --git a/source-recipes/unzip b/source-recipes/unzip new file mode 100644 index 00000000..fce28d83 --- /dev/null +++ b/source-recipes/unzip @@ -0,0 +1,10 @@ +name=unzip +version=6.0 +source_method=tarball +tarball_url="https://sourceforge.net/projects/infozip/files/UnZip%206.x%20%28latest%29/UnZip%206.0/unzip60.tar.gz/download" +tarball_sha512=0694e403ebc57b37218e00ec1a406cae5cc9c5b52b6798e0d4590840b6cdbf9ddc0d9471f67af783e960f8fa2e620394d51384257dca23d06bcd90224a80ce5d +hostdeps="autoconf automake libtool pkgconfig" + +prepare() { + true +}