mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
development/bpython: Added to 13.0 repository
This commit is contained in:
parent
5a78f85979
commit
517a64a12e
5 changed files with 97 additions and 0 deletions
3
development/bpython/README
Normal file
3
development/bpython/README
Normal file
|
@ -0,0 +1,3 @@
|
|||
bpython - A fancy curses interface to the Python interactive interpreter
|
||||
|
||||
Requires: Pygments
|
56
development/bpython/bpython.SlackBuild
Normal file
56
development/bpython/bpython.SlackBuild
Normal file
|
@ -0,0 +1,56 @@
|
|||
#!/bin/sh
|
||||
# Slackware build script for bpython
|
||||
|
||||
# Written by vvoody <ydoovv@gmail.com>
|
||||
|
||||
PRGNAM=bpython
|
||||
VERSION=${VERSION:-0.9.6.2}
|
||||
ARCH=${ARCH:-i486}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
||||
-exec chmod 755 {} \; -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||
-exec chmod 644 {} \;
|
||||
|
||||
python setup.py install --root=$PKG
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
|
||||
xargs strip --strip-unneeded 2> /dev/null || true
|
||||
find . | xargs file | grep "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 \
|
||||
PKG-INFO AUTHORS README CHANGELOG sample-config sample.theme light.theme \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
mv $PKG/usr/share/man $PKG/usr
|
||||
find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
10
development/bpython/bpython.info
Normal file
10
development/bpython/bpython.info
Normal file
|
@ -0,0 +1,10 @@
|
|||
PRGNAM="bpython"
|
||||
VERSION="0.9.6.2"
|
||||
HOMEPAGE="http://bpython-interpreter.org/"
|
||||
DOWNLOAD="http://bpython-interpreter.org/releases/bpython-0.9.6.2.tar.gz"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM="d30fdb663fa9957c21c63108ed249b59"
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="vvoody"
|
||||
EMAIL="ydoovv@gmail.com"
|
||||
APPROVED="dsomero"
|
9
development/bpython/doinst.sh
Normal file
9
development/bpython/doinst.sh
Normal file
|
@ -0,0 +1,9 @@
|
|||
if [ -x /usr/bin/update-desktop-database ]; then
|
||||
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
|
||||
fi
|
||||
|
||||
if [ -r usr/share/icons/hicolor/icon-theme.cache ]; then
|
||||
if [ -x /usr/bin/gtk-update-icon-cache ]; then
|
||||
/usr/bin/gtk-update-icon-cache -q usr/share/icons/hicolor >/dev/null 2>&1
|
||||
fi
|
||||
fi
|
19
development/bpython/slack-desc
Normal file
19
development/bpython/slack-desc
Normal file
|
@ -0,0 +1,19 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description. Line
|
||||
# up the first '|' above the ':' following the base package name, and the '|'
|
||||
# on the right side marks the last column you can put a character in. You must
|
||||
# make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':'.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
bpython: bpython (Fancy Interface to the Python Interpreter)
|
||||
bpython:
|
||||
bpython: bpython is a fancy interface to the Python interpreter for Unix-like
|
||||
bpython: operating systems.
|
||||
bpython:
|
||||
bpython:
|
||||
bpython:
|
||||
bpython:
|
||||
bpython:
|
||||
bpython:
|
||||
bpython:
|
Loading…
Reference in a new issue