summaryrefslogtreecommitdiffstats
path: root/build
blob: d6c22a32a891f5e5dfe5dde5d90ab3bf8278d013 (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
32
33
#!/usr/bin/make -f

include ../source.mk

nop:
	@:

build:
	oh-autobuild -- \
		IDSDIR=/usr/share/misc \
		SHARED=yes

install: build
	oh-autoinstall -- \
		PREFIX=/usr \
		SBINDIR=/usr/bin \
		LIBDIR=/usr/lib/$(OPK_HOST_ARCH) \
		IDSDIR=/usr/share/misc \
		STRIP= \
		SHARED=yes
	oh-autoinstall -T install-lib -- \
		PREFIX=/usr \
		LIBDIR=/usr/lib/$(OPK_HOST_ARCH) \
		SHARED=yes
	mv dest/usr/bin/lspci dest/usr/bin/lspci.pciutils
	# pci.ids is provided by the pciids package.
	rm -f dest/usr/bin/update-pciids
	rm -f dest/usr/share/man/man8/update-pciids.8
	rm -f dest/usr/share/misc/pci.ids*
	oh-fixperms
	oh-strip
	oh-installfiles
	oh-shlibdeps