aboutsummaryrefslogtreecommitdiff
path: root/development/MySQL-python/MySQL-python.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/MySQL-python/MySQL-python.SlackBuild')
-rw-r--r--development/MySQL-python/MySQL-python.SlackBuild7
1 files changed, 5 insertions, 2 deletions
diff --git a/development/MySQL-python/MySQL-python.SlackBuild b/development/MySQL-python/MySQL-python.SlackBuild
index 190207434b0c5..9b2ed4fcb1334 100644
--- a/development/MySQL-python/MySQL-python.SlackBuild
+++ b/development/MySQL-python/MySQL-python.SlackBuild
@@ -5,7 +5,7 @@
# Written by Jick Nan (jick.nan@gmail.com)
PRGNAM=MySQL-python
-VERSION=1.2.3c1
+VERSION=1.2.3
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -49,13 +49,16 @@ cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
+# patch MANIFEST.in
+patch -p1 < $CWD/docs.patch
+
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
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a ChangeLog GPL HISTORY PKG-INFO README doc/*.txt \
+cp -a HISTORY PKG-INFO README doc/*.txt \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild