summaryrefslogtreecommitdiffstats
path: root/build
blob: 83d2dbb73820ad5a7696f7ff1655c5d73a0911b2 (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
31
#!/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
	oh-shlibdeps