summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rwxr-xr-xbuild27
1 files changed, 27 insertions, 0 deletions
diff --git a/build b/build
new file mode 100755
index 0000000..07762d5
--- /dev/null
+++ b/build
@@ -0,0 +1,27 @@
+#!/usr/bin/make -f
+
+include ../source.mk
+
+nop:
+ @:
+
+configure:
+ oh-autoconfigure
+ touch $@
+
+build: configure
+ oh-autobuild
+ touch $@
+
+install: build
+ oh-autoinstall
+ mv dest/usr/bin/xz dest/usr/bin/xz.tuk
+ set -e; \
+ for link in unxz xzcat lzma unlzma lzcat; do \
+ rm -f "dest/usr/bin/$${link}"; \
+ ln -sf xz.tuk "dest/usr/bin/$${link}.tuk"; \
+ done
+ rm -f dest/usr/lib/$(OPK_HOST_ARCH)/liblzma.la
+ oh-fixperms
+ oh-strip
+ oh-installfiles