Skip to content

Commit 29437a1

Browse files
committed
Add in Makefile, README.md and update melange.yaml
1 parent 8828999 commit 29437a1

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

help-check/Makefile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
PROJECT = help-check
2+
MELANGE_CONTEXTDIR ?= /tmp/melange-context/$(PROJECT)
3+
MELANGE_INSTALL_PATH = $(MELANGE_CONTEXTDIR)/usr/bin
4+
5+
.PHONY: build melange-install
6+
7+
build:
8+
chmod +x help-check
9+
10+
test:
11+
12+
melange-install: build
13+
echo $@
14+
mkdir -p $(MELANGE_INSTALL_PATH)
15+
install -Dm755 $(PROJECT) $(MELANGE_INSTALL_PATH)/$(PROJECT)

help-check/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# help-check
2+
3+
This is called to run `help-check` on package binary or binaries.

melange.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,19 @@ subpackages:
137137
[ -f /usr/bin/ver-check ]
138138
[ -x /usr/bin/ver-check ]
139139
140+
- name: help-check
141+
dependencies:
142+
runtime:
143+
- busybox
144+
pipeline:
145+
- runs: |
146+
make -C help-check MELANGE_CONTEXTDIR=${{targets.contextdir}} melange-install
147+
test:
148+
pipeline:
149+
- runs: |
150+
[ -f /usr/bin/help-check ]
151+
[ -x /usr/bin/help-check ]
152+
140153
- name: usrmerge-tool
141154
options:
142155
no-provides: true

0 commit comments

Comments
 (0)