From 5665be0d6de0cb7a4317e3fa6f03f8d577f7b50b Mon Sep 17 00:00:00 2001 From: Echo Date: Tue, 14 Apr 2026 11:48:39 +0000 Subject: [PATCH] fix: Create directory structure in APKBUILD package() function --- build-alpine.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) mode change 100755 => 100644 build-alpine.sh diff --git a/build-alpine.sh b/build-alpine.sh old mode 100755 new mode 100644 index ef4b805..1b3a6a7 --- a/build-alpine.sh +++ b/build-alpine.sh @@ -73,8 +73,14 @@ depends="openrc" source="" package() { - # Copy from workspace path (not srcdir - apk-package is created dynamically) - cp -r /workspace/echo/linux_patch_api/apk-package/* "$pkgdir"/ + # Create directory structure in pkgdir + install -d "$pkgdir"/usr/bin + install -d "$pkgdir"/etc/linux_patch_api + install -d "$pkgdir"/etc/init.d + # Copy from pre-built apk-package directory + cp -r /workspace/echo/linux_patch_api/apk-package/usr/bin/* "$pkgdir"/usr/bin/ + cp -r /workspace/echo/linux_patch_api/apk-package/etc/linux_patch_api/* "$pkgdir"/etc/linux_patch_api/ + cp -r /workspace/echo/linux_patch_api/apk-package/etc/init.d/* "$pkgdir"/etc/init.d/ } EOF