summaryrefslogtreecommitdiffstats
path: root/build
blob: 6586122a76bc58bb5f43a7fd2465806d8c77611f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/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
	rm -f dest/usr/lib/$(OPK_HOST_ARCH)/liblzma.a
	# These are provided by base-files.
	rm -f dest/usr/share/doc/xz/COPYING.*
	oh-fixperms
	oh-strip
	oh-installfiles