diff options
author | Tim Dickson <dickson.tim@googlemail.com> | 2018-05-24 21:25:06 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-05-26 06:59:25 +0700 |
commit | 3d3fbaed748c72626bc22320e5eb7a2afdc7918a (patch) | |
tree | 1a1d68b6160c25aad4b0ec5ea40037cdba398ff6 /python/thonny/thonny.SlackBuild | |
parent | 1a332c83d998508a70c012812f545c4c664d254e (diff) | |
download | slackbuilds-3d3fbaed748c72626bc22320e5eb7a2afdc7918a.tar.gz |
python/thonny: Updated for version 2.2.0b2.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'python/thonny/thonny.SlackBuild')
-rw-r--r-- | python/thonny/thonny.SlackBuild | 30 |
1 files changed, 11 insertions, 19 deletions
diff --git a/python/thonny/thonny.SlackBuild b/python/thonny/thonny.SlackBuild index 09277e3adf..c859c7094f 100644 --- a/python/thonny/thonny.SlackBuild +++ b/python/thonny/thonny.SlackBuild @@ -21,7 +21,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=thonny -VERSION=${VERSION:-2.1.17} +VERSION=${VERSION:-2.2.0b2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -37,11 +37,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM -#thonny comes packaged with a python executable. we don't care which -#flavour x86/x86_64 as we just extract the (no-arch) python files -tar -xzf $CWD/$PRGNAM-$VERSION-x86_64.tar.gz -cd $PRGNAM +rm -rf $PRGNAM-$VERSION +tar -xzf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -50,23 +48,17 @@ find -L . \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; install -D -m0755 $CWD/$PRGNAM.sh $PKG/usr/bin/$PRGNAM - mkdir -p $PKG/opt/$PRGNAM -cp -r lib/python3.6/site-packages/$PRGNAM/* $PKG/opt/$PRGNAM - +cp -r $PRGNAM/* $PKG/opt/$PRGNAM mkdir -p $PKG/usr/share/applications -#patch desktop file to point to correct places. -sed -i "/^Exec/c\Exec=\/usr\/bin\/thonny %F" templates/Thonny.desktop -sed -i "/^Icon/c\Icon=thonny.png" templates/Thonny.desktop -cp -a templates/Thonny.desktop $PKG/usr/share/applications/$PRGNAM.desktop - +cp -a packaging/linux/org.thonny.Thonny.desktop $PKG/usr/share/applications/$PRGNAM.desktop mkdir -p $PKG/usr/share/pixmaps -cp -a lib/python3.6/site-packages/thonny/res/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png - +cp -a packaging/icons/$PRGNAM-*.png $PKG/usr/share/pixmaps/ +cp -a packaging/icons/$PRGNAM-128x128.png $PKG/usr/share/pixmaps/$PRGNAM.png mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a lib/python3.6/site-packages/thonny-2.1.17.dist-info/DESCRIPTION.rst \ - $PKG/usr/doc/$PRGNAM-$VERSION -cp -a LICENSE.txt $PKG/usr/doc/$PRGNAM-$VERSION +for i in CREDITS.rst README.rst CHANGELOG.rst LICENSE.txt; do + cp $i $PKG/usr/doc/$PRGNAM-$VERSION +done cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |