python-pam: Create symlink to PAM.py and PAM.pyc.

This fixed the not working cinnamon-settings application.

Signed-off-by: willysr <willysr@gmail.com>
This commit is contained in:
Willy Sudiarto Raharjo 2014-04-10 13:37:34 +07:00 committed by willysr
parent fef313c7b3
commit 40614f64a2
2 changed files with 7 additions and 2 deletions

View file

@ -4,5 +4,4 @@ KNOWN ISSUES
Network-Manager and rebuild
- In case of muffin failed on SnMonitorContext, reinstall startup-notification
and rebuild
- Clicking account detail and system settings in account icon does nothing
- If KDE apps do not work on Cinnamon, try reinstalling qt

View file

@ -24,7 +24,7 @@
PRGNAM=python-pam
VERSION=${VERSION:-0.1.4}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_csb}
if [ -z "$ARCH" ]; then
@ -65,6 +65,12 @@ python setup.py install --root=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
(
cd $PKG/usr/lib${LIBDIRSUFFIX}/python2.7/site-packages/
ln -s pam.py PAM.py
ln -s pam.pyc PAM.pyc
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild