summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-05-08 13:07:13 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-05-08 13:07:13 (EDT)
commit94020c50f9f4b87934aa3fdbe1f2a6c95187da62 (patch)
treeea2116112317dd364d5b3c2d1c84930e72c26a73 /build
Initial commit.
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