mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
development/pil: Updated for version 1.1.6
This commit is contained in:
parent
84c5f3b885
commit
8f170791e2
1 changed files with 5 additions and 16 deletions
|
@ -22,41 +22,30 @@
|
|||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
# Exit on most errors
|
||||
set -e
|
||||
|
||||
PRGNAM=pil
|
||||
DISTNAM=Imaging
|
||||
VERSION=1.1.6
|
||||
ARCH=${ARCH:-i486}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
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"
|
||||
fi
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $DISTNAM-$VERSION
|
||||
tar xzvf $CWD/$DISTNAM-$VERSION.tar.gz
|
||||
tar xvf $CWD/$DISTNAM-$VERSION.tar.gz
|
||||
cd $DISTNAM-$VERSION
|
||||
chown -R root:root .
|
||||
chmod -R u+w,go+r-w,a-s .
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
python setup.py bdist
|
||||
|
||||
tar zxvf dist/$(echo $PRGNAM | tr -s '[:lower:]' \
|
||||
'[:upper:]')-$VERSION.linux-i686.tar.gz \
|
||||
-C $PKG
|
||||
python setup.py install --root=$PKG
|
||||
|
||||
find $PKG | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : \
|
||||
| xargs strip --strip-unneeded 2> /dev/null
|
||||
|
|
Loading…
Reference in a new issue