summaryrefslogtreecommitdiff
path: root/python/pymysql/pymysql.SlackBuild
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja[at]gmail[dot]com>2016-01-01 00:19:03 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-01-01 00:19:03 +0700
commit71e60f0042b8552829f8a9d8ab64598babaea5aa (patch)
treecf20999350515c1f5fe29bd82a4aab4c26ab5498 /python/pymysql/pymysql.SlackBuild
parentdea048d22e461071fbe9b99ca7a30a7a39264953 (diff)
downloadslackbuilds-71e60f0042b8552829f8a9d8ab64598babaea5aa.tar.gz
python/pymysql: Updated for version 0.6.7.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/pymysql/pymysql.SlackBuild')
-rw-r--r--python/pymysql/pymysql.SlackBuild10
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