commit f609854
hovercats
·
2026-02-14 00:39:53 +0000 UTC
parent aa7ad0c
support local files under files/ dir
1 files changed,
+6,
-1
M
rcpm
M
rcpm
+6,
-1
1@@ -41,7 +41,9 @@ fn chksum_pkg {
2 if (test -f sha256) sha256sum -c sha256
3 if not {
4 if (test ! -f .submodule) {
5- errexit 'No submodule or sha256 file found!'
6+ if (test ! -d files/) {
7+ errexit 'No submodule, files/ or sha256 file found!'
8+ }
9 }
10 }
11 }
12@@ -102,6 +104,9 @@ fn build_pkg {
13 cd $RCPM_PATH/$pkg
14 chksum_pkg $pkg
15 if (test -f url) unpack_pkg $archive
16+ if (test -d files/) {
17+ mkdir -p src/ && cp -Rf files/*
18+ }
19 cd src
20 destdir=/tmp/$pid/$pkg
21 ../build