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

include ../source.mk

nop:
	@:

build:
	oh-autoconfigure -- \
		--disable-static \
		--disable-curl --disable-ssl-curl --disable-gpg \
		--enable-sha256 \
		--with-opkglibdir=/var/lib
	oh-autobuild
	touch $@

install: build
	oh-autoinstall
	rm -f dest/usr/lib/$(OPK_HOST_ARCH)/libopkg.la
	ln -sf opkg-cl dest/usr/bin/opkg
	ln -sf opkg-cl.1 dest/usr/share/man/man1/opkg.1
	oh-fixperms
	oh-strip -k
	oh-installfiles