APKBUILD examples:Permissions: Difference between revisions

From Alpine Linux
(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 ...")
(No difference)

Revision as of 10:31, 25 May 2012

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