mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
development/Pivy: Added to 12.1 repository
This commit is contained in:
parent
d1549e1631
commit
01348eeee5
4 changed files with 100 additions and 0 deletions
61
development/Pivy/Pivy.SlackBuild
Normal file
61
development/Pivy/Pivy.SlackBuild
Normal file
|
@ -0,0 +1,61 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for Pivy
|
||||
|
||||
# Written by Aleksandar Samardzic <asamardzic@gmail.com>
|
||||
|
||||
PRGNAM=Pivy
|
||||
VERSION=${VERSION:-0.4.0_svn}
|
||||
ARCH=${ARCH:-i486}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=${PKG:-$TMP/package-$PRGNAM}
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM
|
||||
tar xvf $CWD/$PRGNAM-latest.tar.gz
|
||||
cd $PRGNAM
|
||||
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 {} \;
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
python setup.py build
|
||||
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
|
||||
)
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a AUTHORS ChangeLog HACKING LICENSE NEWS README THANKS \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
find $PKG/usr/doc -type f -exec chmod 0644 {} \;
|
||||
|
||||
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
|
8
development/Pivy/Pivy.info
Normal file
8
development/Pivy/Pivy.info
Normal file
|
@ -0,0 +1,8 @@
|
|||
PRGNAM="Pivy"
|
||||
VERSION="0.4.0-svn"
|
||||
HOMEPAGE="http://pivy.coin3d.org/"
|
||||
DOWNLOAD="http://pivy.coin3d.org/download/snapshot/releases/daily/Pivy-latest.tar.gz"
|
||||
MD5SUM="298fd0b60aeade579fa2b302298d9298"
|
||||
MAINTAINER="Aleksandar Samardzic"
|
||||
EMAIL="asamardzic@gmail.com"
|
||||
APPROVED="Michiel"
|
12
development/Pivy/README
Normal file
12
development/Pivy/README
Normal file
|
@ -0,0 +1,12 @@
|
|||
Pivy is a Python binding for Coin where the interface is implemented
|
||||
using SWIG.
|
||||
|
||||
Pivy allows:
|
||||
* development of Coin applications in Python
|
||||
* interactive modification of Coin programs from within the Python
|
||||
interpreter at runtime
|
||||
* incorporation of Scripting Nodes into the scene graph which are
|
||||
capable of executing Python code and callback functions
|
||||
|
||||
Pivy package depends on Coin and SWIG packages, both available from
|
||||
SlackBuilds.org.
|
19
development/Pivy/slack-desc
Normal file
19
development/Pivy/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------------------------------------------------------|
|
||||
Pivy: Pivy is a Coin binding for Python.
|
||||
Pivy:
|
||||
Pivy: Pivy is an extension to the Python programming language,
|
||||
Pivy: wrapping Coin C++ scene graph library for usage from Python.
|
||||
Pivy:
|
||||
Pivy: Homepage: http://pivy.coin3d.org/
|
||||
Pivy:
|
||||
Pivy:
|
||||
Pivy:
|
||||
Pivy:
|
||||
Pivy:
|
Loading…
Reference in a new issue