aboutsummaryrefslogtreecommitdiff
path: root/extra/brotli
diff options
context:
space:
mode:
Diffstat (limited to 'extra/brotli')
-rwxr-xr-xextra/brotli/build20
-rw-r--r--extra/brotli/checksums2
-rw-r--r--extra/brotli/depends1
-rw-r--r--extra/brotli/meta3
-rw-r--r--extra/brotli/sources1
-rw-r--r--extra/brotli/version1
6 files changed, 28 insertions, 0 deletions
diff --git a/extra/brotli/build b/extra/brotli/build
new file mode 100755
index 00000000..3d8522d4
--- /dev/null
+++ b/extra/brotli/build
@@ -0,0 +1,20 @@
+#!/bin/sh -e
+
+export DESTDIR="$1"
+
+shared() {
+ LIBS=$1; shift
+ cmake -B build \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_TESTING=OFF \
+ -DBUILD_SHARED_LIBS="$LIBS" \
+ "$@"
+
+ cmake --build build
+ cmake --install build
+}
+
+shared ON
+shared OFF -DCMAKE_EXE_LINKER_FLAGS="$LDFLAGS -static"
diff --git a/extra/brotli/checksums b/extra/brotli/checksums
new file mode 100644
index 00000000..e903eaf9
--- /dev/null
+++ b/extra/brotli/checksums
@@ -0,0 +1,2 @@
+%BLAKE3
+df15ff5f4a14f9d85ba9f70afba46f8d85f079cefa6d213b8c7f4e8aa1d3885b v1.1.0.tar.gz
diff --git a/extra/brotli/depends b/extra/brotli/depends
new file mode 100644
index 00000000..7d91ec22
--- /dev/null
+++ b/extra/brotli/depends
@@ -0,0 +1 @@
+cmake make
diff --git a/extra/brotli/meta b/extra/brotli/meta
new file mode 100644
index 00000000..b5e69cdf
--- /dev/null
+++ b/extra/brotli/meta
@@ -0,0 +1,3 @@
+description: Generic-purpose lossless compression algorithm
+license: MIT
+maintainer: Cem Keylan <cem@carbslinux.org>
diff --git a/extra/brotli/sources b/extra/brotli/sources
new file mode 100644
index 00000000..9929dd44
--- /dev/null
+++ b/extra/brotli/sources
@@ -0,0 +1 @@
+https://github.com/google/brotli/archive/refs/tags/v1.1.0.tar.gz
diff --git a/extra/brotli/version b/extra/brotli/version
new file mode 100644
index 00000000..cc57f911
--- /dev/null
+++ b/extra/brotli/version
@@ -0,0 +1 @@
+1.1.0 2