aboutsummaryrefslogtreecommitdiff
path: root/libraries/python-musicbrainz2/python-musicbrainz2.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/python-musicbrainz2/python-musicbrainz2.SlackBuild')
-rw-r--r--libraries/python-musicbrainz2/python-musicbrainz2.SlackBuild13
1 files changed, 10 insertions, 3 deletions
diff --git a/libraries/python-musicbrainz2/python-musicbrainz2.SlackBuild b/libraries/python-musicbrainz2/python-musicbrainz2.SlackBuild
index 2db1511a745fe..168da4ee4816c 100644
--- a/libraries/python-musicbrainz2/python-musicbrainz2.SlackBuild
+++ b/libraries/python-musicbrainz2/python-musicbrainz2.SlackBuild
@@ -5,8 +5,8 @@
# Written by Larry Hajali <larryhaja[at]gmail[dot]com>
PRGNAM=python-musicbrainz2
-VERSION=${VERSION:-0.6.0}
-ARCH=${ARCH:-noarch}
+VERSION=${VERSION:-0.7.0}
+ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -22,6 +22,7 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+chmod 0755 $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
@@ -30,6 +31,11 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+# Optional API documentation generation.
+if [ "${MAKE_DOCS:-no}" == "yes" ]; then
+ python setup.py docs
+fi
+
python setup.py install --root=$PKG
( cd $PKG
@@ -42,9 +48,10 @@ python setup.py install --root=$PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a *.txt $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+[ -d html ] && cp -a html $PKG/usr/doc/$PRGNAM-$VERSION/
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}