APKBUILD examples:Permissions

From Alpine Linux
Revision as of 10:31, 25 May 2012 by Fab (talk | contribs) (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 ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

If the source files have strange permissions you can easily fix this in your 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