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

include ../source.mk

nop:
	@:

build:
	oh-autoconfigure
	oh-autobuild
	if [ 'x$(OPK_BUILD_ARCH)' = 'x$(OPK_HOST_ARCH)' ]; then \
		oh-autotest; \
	fi
	touch $@

install: build
	oh-autoinstall
	rm dest/usr/bin/gpgscm  # TinyScheme-based test driver
	rm -R dest/usr/share/doc/gnupg/examples/systemd-user
	sed '/systemd-user/d' dest/usr/share/doc/gnupg/examples/README \
		>dest/usr/share/doc/gnupg/examples/README~
	mv dest/usr/share/doc/gnupg/examples/README~ \
		dest/usr/share/doc/gnupg/examples/README
	mv dest/usr/share/doc/gnupg/ dest/usr/share/doc/gpg/
	oh-fixperms
	oh-strip
	oh-installfiles