diff options
Diffstat (limited to 'source/l/M2Crypto/M2Crypto.SlackBuild')
-rwxr-xr-x | source/l/M2Crypto/M2Crypto.SlackBuild | 35 |
1 files changed, 3 insertions, 32 deletions
diff --git a/source/l/M2Crypto/M2Crypto.SlackBuild b/source/l/M2Crypto/M2Crypto.SlackBuild index 1c8dda67..0aefd8c5 100755 --- a/source/l/M2Crypto/M2Crypto.SlackBuild +++ b/source/l/M2Crypto/M2Crypto.SlackBuild @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PKGNAM=M2Crypto VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} -BUILD=${BUILD:-4} +BUILD=${BUILD:-5} # Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then @@ -61,39 +61,10 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \+ -python setup.py install --root=$PKG || exit 1 python3 setup.py install --root=$PKG || exit 1 -mkdir -p $PKG/usr/doc/M2Crypto-$VERSION -cp -a \ - CHANGES INSTALL* LICENCE* PKG-INFO README* doc/* \ - $PKG/usr/doc/M2Crypto-$VERSION - -# Embed required dep typing module: -cd $TMP -rm -rf typing-3.7.4.1 -tar xvf $CWD/typing-3.7.4.1.tar.xz || exit 1 -cd typing-3.7.4.1 || exit 1 -chown -R root:root . -find . \ - \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \+ -o \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \+ -python setup.py install --root=$PKG || exit 1 -# *Don't* package typing with python3: -#python3 setup.py install --root=$PKG || exit 1 -mkdir -p $PKG/usr/doc/typing-3.7.4.1 -cp -a \ - CHANGES INSTALL* LICENCE* PKG-INFO README* doc/* \ - $PKG/usr/doc/typing-3.7.4.1 - -( cd $PKG - find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \ - xargs strip --strip-unneeded 2> /dev/null || true - find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \ - xargs strip --strip-unneeded 2> /dev/null -) +# Strip binaries: +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> / mkdir -p $PKG/usr/doc/M2Crypto-$VERSION cp -a \ |