pycodestyle: fix permissions

This commit is contained in:
Alessio Sergi 2016-06-24 22:12:45 +02:00
parent 9d5d5e9e02
commit 705caeb9d8
1 changed files with 5 additions and 1 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'pycodestyle'
pkgname=pycodestyle
version=2.0.0
revision=1
revision=2
noarch=yes
build_style=python-module
python_versions="2.7 3.4"
@ -17,6 +17,10 @@ checksum=37f0420b14630b0eaaf452978f3a6ea4816d787c3e6dcbba6fb255030adae2e7
alternatives="pycodestyle:pycodestyle:/usr/bin/pycodestyle2.7"
post_install() {
# fix permissions
find ${DESTDIR}/usr/lib/python*/site-packages -type f -perm 0640 \
-exec chmod 0644 "{}" \;
sed -n '/Copyright/,/SOFTWARE\./p' pycodestyle.py >LICENSE
vlicense LICENSE
}