diff options
Diffstat (limited to 'python/pymysql/pymysql.SlackBuild')
-rw-r--r-- | python/pymysql/pymysql.SlackBuild | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/python/pymysql/pymysql.SlackBuild b/python/pymysql/pymysql.SlackBuild index 6ed7796818..2ee2a77421 100644 --- a/python/pymysql/pymysql.SlackBuild +++ b/python/pymysql/pymysql.SlackBuild @@ -23,7 +23,8 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=pymysql -VERSION=${VERSION:-0.6.6} +SRCNAM=PyMySQL +VERSION=${VERSION:-0.6.7} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -45,9 +46,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf PyMySQL-$PRGNAM-$VERSION -tar xvf $CWD/PyMySQL-$PRGNAM-$VERSION.tar.gz 2>/dev/null || tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd PyMySQL-$PRGNAM-$VERSION +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tar.gz 2>/dev/null || tar xvf $CWD/$VERSION.tar.gz +cd $SRCNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -60,6 +61,7 @@ rm -rf $PRGNAM/tests python setup.py install --root=$PKG +# Install python3 bindings. Default is no. if [ "${PYTHON3:-no}" == "yes" ]; then python3 setup.py install --root=$PKG fi |