forked from ProcursusTeam/Procursus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
findutils.mk
47 lines (38 loc) · 1.36 KB
/
findutils.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
37
38
39
40
41
42
43
44
45
46
47
ifneq ($(PROCURSUS),1)
$(error Use the main Makefile)
endif
STRAPPROJECTS += findutils
FINDUTILS_VERSION := 4.7.0
DEB_FINDUTILS_V ?= $(FINDUTILS_VERSION)
findutils-setup: setup
wget -q -nc -P $(BUILD_SOURCE) https://ftpmirror.gnu.org/findutils/findutils-$(FINDUTILS_VERSION).tar.xz{,.sig}
$(call PGP_VERIFY,findutils-$(FINDUTILS_VERSION).tar.xz)
$(call EXTRACT_TAR,findutils-$(FINDUTILS_VERSION).tar.xz,findutils-$(FINDUTILS_VERSION),findutils)
ifneq ($(wildcard $(BUILD_WORK)/findutils/.build_complete),)
findutils:
@echo "Using previously built findutils."
else
findutils: findutils-setup gettext
cd $(BUILD_WORK)/findutils && ./configure -C \
--host=$(GNU_HOST_TRIPLE) \
--prefix=/usr \
--disable-dependency-tracking \
--disable-debug
+$(MAKE) -C $(BUILD_WORK)/findutils
+$(MAKE) -C $(BUILD_WORK)/findutils install \
DESTDIR=$(BUILD_STAGE)/findutils
touch $(BUILD_WORK)/findutils/.build_complete
endif
findutils-package: findutils-stage
# findutils.mk Package Structure
rm -rf $(BUILD_DIST)/findutils
mkdir -p $(BUILD_DIST)/findutils
# findutils.mk Prep findutils
cp -a $(BUILD_STAGE)/findutils/usr $(BUILD_DIST)/findutils
# findutils.mk Sign
$(call SIGN,findutils,general.xml)
# findutils.mk Make .debs
$(call PACK,findutils,DEB_FINDUTILS_V)
# findutils.mk Build cleanup
rm -rf $(BUILD_DIST)/findutils
.PHONY: findutils findutils-package