aboutsummaryrefslogtreecommitdiff
path: root/community/lz4/build
diff options
context:
space:
mode:
Diffstat (limited to 'community/lz4/build')
-rwxr-xr-xcommunity/lz4/build12
1 files changed, 12 insertions, 0 deletions
diff --git a/community/lz4/build b/community/lz4/build
new file mode 100755
index 00000000..918a76c1
--- /dev/null
+++ b/community/lz4/build
@@ -0,0 +1,12 @@
+#!/bin/sh -e
+
+mk() {
+ make \
+ PREFIX=/usr \
+ "$@"
+}
+
+mk -C lib
+mk -C programs LDFLAGS="$LDFLAGS -static" lz4 lz4c
+
+mk DESTDIR="$1" install