APKBUILD examples:Permissions: Difference between revisions
(Created page with "If the source files have strange permissions you can easily fix this in your APKBUILD. <pre> # Fix subdir perms find "$subpkgdir"/usr/share/doc/$pkgname/ -type d \ -exec chmod ...") |
(use cat template) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
If the source files have strange permissions you can easily fix this in your APKBUILD. | If the source files have strange permissions you can easily fix this in your APKBUILD. | ||
< | {{cat|APKBUILD|<nowiki>... | ||
# Fix subdir perms | # Fix subdir perms | ||
find "$subpkgdir"/usr/share/doc/$pkgname/ -type d \ | find "$subpkgdir"/usr/share/doc/$pkgname/ -type d \ | ||
Line 7: | Line 7: | ||
find "$subpkgdir"/usr/share/$pkgname/ -type d \ | find "$subpkgdir"/usr/share/$pkgname/ -type d \ | ||
-exec chmod 755 '{}' \; || return 1 | -exec chmod 755 '{}' \; || return 1 | ||
</ | ...</nowiki>}} | ||
[[Category:Development]] | [[Category:Development]] |
Latest revision as of 22:26, 16 September 2023
If the source files have strange permissions you can easily fix this in your APKBUILD.
Contents of APKBUILD
...
# Fix subdir perms
find "$subpkgdir"/usr/share/doc/$pkgname/ -type d \
-exec chmod 755 '{}' \; || return 1
find "$subpkgdir"/usr/share/$pkgname/ -type d \
-exec chmod 755 '{}' \; || return 1
...