Skip to content

Commit 2a5de4b

Browse files
committed
Add ply
Signed-off-by: TheRealKeto <therealketo@gmail.com>
1 parent 2be2b49 commit 2a5de4b

2 files changed

Lines changed: 53 additions & 0 deletions

File tree

build_info/ply.control

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Package: ply
2+
Version: @DEB_PLY_V@
3+
Architecture: @DEB_ARCH@
4+
Maintainer: @DEB_MAINTAINER@
5+
Author: Dustin Howett <duhowett@microsoft.com>
6+
Section: Golang
7+
Priority: optional
8+
Homepage: https://www.howett.net/projects/plist/
9+
Description: A pure Go Apple Property List transcoder.

makefiles/ply.mk

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
ifneq ($(PROCURSUS),1)
2+
$(error Use the main Makefile)
3+
endif
4+
5+
SUBPROJECTS += ply
6+
PLY_COMMIT := 663ca4754218f780059ce490798b012183e4d0b4
7+
PLY_VERSION := 1.0.0
8+
DEB_PLY_V ?= $(PLY_VERSION)
9+
10+
ply-setup: setup
11+
$(call GITHUB_ARCHIVE,DHowett,go-plist,$(PLY_COMMIT),$(PLY_COMMIT),ply)
12+
$(call EXTRACT_TAR,ply-$(PLY_COMMIT).tar.gz,go-plist-$(PLY_COMMIT),ply)
13+
mkdir -p $(BUILD_STAGE)/ply/$(MEMO_PREFIX)$(MEMO_SUB_PREFIX)/bin
14+
15+
ifneq ($(wildcard $(BUILD_WORK)/ply/.build_complete),)
16+
ply:
17+
@echo "Using previously built ply."
18+
else
19+
ply: ply-setup
20+
cd $(BUILD_WORK)/ply && $(DEFAULT_GOLANG_FLAGS) go build \
21+
-trimpath \
22+
-o $(BUILD_WORK)/ply/ply \
23+
$(BUILD_WORK)/ply/cmd/ply
24+
$(INSTALL) -Dm755 $(BUILD_WORK)/ply/ply $(BUILD_STAGE)/ply/$(MEMO_PREFIX)$(MEMO_SUB_PREFIX)/bin/
25+
$(call AFTER_BUILD)
26+
endif
27+
28+
ply-package: ply-stage
29+
# ply.mk Package Structure
30+
rm -rf $(BUILD_DIST)/ply
31+
32+
# ply.mk Prep ply
33+
cp -a $(BUILD_STAGE)/ply $(BUILD_DIST)
34+
35+
# ply.mk Sign
36+
$(call SIGN,ply,general.xml)
37+
38+
# ply.mk Make .debs
39+
$(call PACK,ply,DEB_PLY_V)
40+
41+
# ply.mk Build cleanup
42+
rm -rf $(BUILD_DIST)/ply
43+
44+
.PHONY: ply ply-package

0 commit comments

Comments
 (0)