+++ /dev/null
-#!/bin/sh -e
-
-gmake
-gmake DESTDIR="$1" PREFIX=/usr install
+++ /dev/null
-5194fbfa781fcf45b98c5e849651aa7b3b0a008c6b72d4a0db760f3002291e94
+++ /dev/null
-gmake make
+++ /dev/null
-https://github.com/facebook/zstd/releases/download/v1.5.0/zstd-1.5.0.tar.gz
#!/bin/sh -e
+(
+ cd zstd
+ sed -i 's/^FLAGS.*=/FLAGS = -static /' programs/Makefile
+
+ gmake \
+ HAVE_LZMA=0 \
+ HAVE_ZLIB=0 \
+ HAVE_LZ4=0
+
+ gmake \
+ DESTDIR="$PWD/out" \
+ PREFIX=/usr \
+ install
+)
+
export DESTDIR="$1"
export CFLAGS="$CFLAGS -static"
export CXXFLAGS="$CXXFLAGS -static"
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_TESTING=OFF \
- -DZSTD_LIBRARY=/usr/lib/libzstd.a
+ -DZSTD_INCLUDE_DIR="$PWD/zstd/out/usr/include/" \
+ -DZSTD_LIBRARY="$PWD/zstd/out/usr/lib/libzstd.a"
cmake --build build
cmake --install build
504a0f2184465c306826f035b4bc00bae7500308d6af4abbfb50e33a694989b4
+5194fbfa781fcf45b98c5e849651aa7b3b0a008c6b72d4a0db760f3002291e94
cat <<EOF
-NOTE: To enable 'ccache' add this to your
- '.shellrc' or '.profile'.
+NOTE: To enable 'ccache' add this to your shell's rc file
-> export PATH=/usr/lib/ccache/bin:\$PATH
https://github.com/ccache/ccache/releases/download/v4.3/ccache-4.3.tar.xz
+https://github.com/facebook/zstd/releases/download/v1.5.0/zstd-1.5.0.tar.gz zstd
--localstatedir=/var \
--buildtype=release \
-Dplatforms=x11 \
- -Dzstd=enabled \
+ -Dzstd=disabled \
. output
ninja -C output
python make
xorgproto
zlib
-zstd
--with-included-popt \
--disable-xxhash \
--disable-lz4 \
- --enable-zstd \
- --without-included-zlib
+ --without-included-zlib \
+ --disable-zstd
make
make DESTDIR="$1" install
--- /dev/null
+#!/bin/sh -e
+
+gmake
+gmake DESTDIR="$1" PREFIX=/usr install
--- /dev/null
+5194fbfa781fcf45b98c5e849651aa7b3b0a008c6b72d4a0db760f3002291e94
--- /dev/null
+gmake make
--- /dev/null
+https://github.com/facebook/zstd/releases/download/v1.5.0/zstd-1.5.0.tar.gz