summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Dave Woodfall2021-05-03 07:50:20 +0200
committer Robby Workman2021-05-03 08:49:58 +0200
commit3b8d7e22335e3c823413b19e906705e983f26fc3 (patch)
treeeff38df56b265eeea643f5f07610a7f24372d2a6
parent2902e47b3f36809793909927c8b5932b26375c47 (diff)
downloadslackbuilds-3b8d7e22335e3c823413b19e906705e983f26fc3.tar.gz
python/python-xrandr: Renamed python2-xrandr.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
-rw-r--r--python/python2-xrandr/README (renamed from python/python-xrandr/README)0
-rw-r--r--python/python2-xrandr/python2-xrandr.SlackBuild (renamed from python/python-xrandr/python-xrandr.SlackBuild)17
-rw-r--r--python/python2-xrandr/python2-xrandr.info (renamed from python/python-xrandr/python-xrandr.info)2
-rw-r--r--python/python2-xrandr/slack-desc (renamed from python/python-xrandr/slack-desc)24
4 files changed, 22 insertions, 21 deletions
diff --git a/python/python-xrandr/README b/python/python2-xrandr/README
index 59ba76193f..59ba76193f 100644
--- a/python/python-xrandr/README
+++ b/python/python2-xrandr/README
diff --git a/python/python-xrandr/python-xrandr.SlackBuild b/python/python2-xrandr/python2-xrandr.SlackBuild
index ccf23bc6f2..90f63a0163 100644
--- a/python/python-xrandr/python-xrandr.SlackBuild
+++ b/python/python2-xrandr/python2-xrandr.SlackBuild
@@ -22,14 +22,15 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-PRGNAM=python-xrandr
+PRGNAM=python2-xrandr
+SRCNAM=python-xrandr
VERSION=${VERSION:-0.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -40,8 +41,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -59,9 +60,9 @@ 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
+rm -rf $SRCNAM-$VERSION
+tar xvf $CWD/$SRCNAM-$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 -o -perm 511 \) \
@@ -69,7 +70,7 @@ find -L . \
\( -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
+python2 setup.py install --root=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
diff --git a/python/python-xrandr/python-xrandr.info b/python/python2-xrandr/python2-xrandr.info
index ff712cd40a..1651c6674f 100644
--- a/python/python-xrandr/python-xrandr.info
+++ b/python/python2-xrandr/python2-xrandr.info
@@ -1,4 +1,4 @@
-PRGNAM="python-xrandr"
+PRGNAM="python2-xrandr"
VERSION="0.1"
HOMEPAGE="https://launchpad.net/python-xrandr"
DOWNLOAD="http://launchpad.net/python-xrandr/stable/0.1/+download/python-xrandr-0.1.tar.gz"
diff --git a/python/python-xrandr/slack-desc b/python/python2-xrandr/slack-desc
index f2c8df49fc..def48095fe 100644
--- a/python/python-xrandr/slack-desc
+++ b/python/python2-xrandr/slack-desc
@@ -5,15 +5,15 @@
# You must make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':' except on otherwise blank lines.
- |-----handy-ruler------------------------------------------------------|
-python-xrandr: python-xrandr (python bindings for X RandR)
-python-xrandr:
-python-xrandr: Bindings for the RandR extesion of X.
-python-xrandr:
-python-xrandr:
-python-xrandr:
-python-xrandr:
-python-xrandr:
-python-xrandr:
-python-xrandr:
-python-xrandr:
+ |-----handy-ruler------------------------------------------------------|
+python2-xrandr: python2-xrandr (python bindings for X RandR)
+python2-xrandr:
+python2-xrandr: Bindings for the RandR extesion of X.
+python2-xrandr:
+python2-xrandr:
+python2-xrandr:
+python2-xrandr:
+python2-xrandr:
+python2-xrandr:
+python2-xrandr:
+python2-xrandr: