From 58fa790e2249295b6c4f9cda36d4de40cf8ac9e0 Mon Sep 17 00:00:00 2001 From: "Alejandro W. Sior" Date: Fri, 3 Feb 2023 10:05:32 +0100 Subject: zstd: new package at version 1.5.2 --- zstd/build | 12 ++++++++++++ zstd/checksums | 1 + zstd/files/01-makefile-install-solaris.patch | 11 +++++++++++ zstd/sources | 2 ++ zstd/version | 1 + 5 files changed, 27 insertions(+) create mode 100644 zstd/build create mode 100644 zstd/checksums create mode 100644 zstd/files/01-makefile-install-solaris.patch create mode 100644 zstd/sources create mode 100644 zstd/version diff --git a/zstd/build b/zstd/build new file mode 100644 index 0000000..8bdd2c9 --- /dev/null +++ b/zstd/build @@ -0,0 +1,12 @@ +#!/bin/sh -e + +for patch in *.patch; do + patch -p1 < $patch +done + +gmake +gmake PREFIX=/usr DESTDIR=$1 install + +# Relocate manual pages +mkdir $1/usr/share +mv $1/usr/man $1/usr/share diff --git a/zstd/checksums b/zstd/checksums new file mode 100644 index 0000000..ca4f37a --- /dev/null +++ b/zstd/checksums @@ -0,0 +1 @@ +072b10f71f5820c24761a65f31f43e73 zstd-1.5.2.tar.gz diff --git a/zstd/files/01-makefile-install-solaris.patch b/zstd/files/01-makefile-install-solaris.patch new file mode 100644 index 0000000..4cd1da7 --- /dev/null +++ b/zstd/files/01-makefile-install-solaris.patch @@ -0,0 +1,11 @@ +--- a/Makefile Thu Jan 20 22:17:18 2022 ++++ b/Makefile Fri Feb 3 08:00:55 2023 +@@ -149,7 +149,7 @@ + #------------------------------------------------------------------------------ + # make install is validated only for Linux, macOS, Hurd and some BSD targets + #------------------------------------------------------------------------------ +-ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU OpenBSD FreeBSD DragonFly NetBSD MSYS_NT Haiku AIX)) ++ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU OpenBSD FreeBSD DragonFly NetBSD MSYS_NT Haiku AIX SunOS)) + + HOST_OS = POSIX + diff --git a/zstd/sources b/zstd/sources new file mode 100644 index 0000000..965f145 --- /dev/null +++ b/zstd/sources @@ -0,0 +1,2 @@ +https://github.com/facebook/zstd/releases/download/v1.5.2/zstd-1.5.2.tar.gz $ +files/ $ diff --git a/zstd/version b/zstd/version new file mode 100644 index 0000000..4cda8f1 --- /dev/null +++ b/zstd/version @@ -0,0 +1 @@ +1.5.2 -- cgit v1.2.3