forked from ProcursusTeam/Procursus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
keyring.mk
36 lines (29 loc) · 957 Bytes
/
keyring.mk
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
34
35
36
ifneq ($(PROCURSUS),1)
$(error Use the main Makefile)
endif
STRAPPROJECTS += keyring
KEYRING_VERSION := 2020.05.09
DEB_KEYRING_V ?= $(KEYRING_VERSION)
ifneq ($(wildcard $(BUILD_STAGE)/keyring/.build_complete),)
keyring:
@echo "Using previously built keyring."
else
keyring: setup
mkdir -p $(BUILD_STAGE)/keyring/etc/apt/trusted.gpg.d
cp -a $(BUILD_INFO)/memo.gpg $(BUILD_STAGE)/keyring/etc/apt/trusted.gpg.d
ifeq ($(MEMO_TARGET),iphoneos-arm64)
cp -a $(BUILD_INFO)/chariz.gpg $(BUILD_STAGE)/keyring/etc/apt/trusted.gpg.d
endif
touch $(BUILD_STAGE)/keyring/.build_complete
endif
keyring-package: keyring-stage
# keyring.mk Package Structure
rm -rf $(BUILD_DIST)/keyring
mkdir -p $(BUILD_DIST)/keyring
# keyring.mk Prep keyring
cp -a $(BUILD_STAGE)/keyring/etc $(BUILD_DIST)/keyring
# keyring.mk Make .debs
$(call PACK,keyring,DEB_KEYRING_V)
# keyring.mk Build cleanup
rm -rf $(BUILD_DIST)/keyring
.PHONY: keyring keyring-package