summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlejandro W. Sior <aho@sior.be>2023-02-03 10:05:32 +0100
committerAlejandro W. Sior <aho@sior.be>2023-02-03 10:05:32 +0100
commit58fa790e2249295b6c4f9cda36d4de40cf8ac9e0 (patch)
tree8f8dbdae36a1c418876389bfc1d0956466cd13bb
parentdf453afac07d624dd25c778f6aed84749f0b7857 (diff)
zstd: new package at version 1.5.2
-rw-r--r--zstd/build12
-rw-r--r--zstd/checksums1
-rw-r--r--zstd/files/01-makefile-install-solaris.patch11
-rw-r--r--zstd/sources2
-rw-r--r--zstd/version1
5 files changed, 27 insertions, 0 deletions
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