fix: Create directory structure in APKBUILD package() function
This commit is contained in:
10
build-alpine.sh
Executable file → Normal file
10
build-alpine.sh
Executable file → Normal file
@ -73,8 +73,14 @@ depends="openrc"
|
|||||||
source=""
|
source=""
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
# Copy from workspace path (not srcdir - apk-package is created dynamically)
|
# Create directory structure in pkgdir
|
||||||
cp -r /workspace/echo/linux_patch_api/apk-package/* "$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
|
EOF
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user