summaryrefslogtreecommitdiff
path: root/development/pil/pil.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/pil/pil.SlackBuild')
-rw-r--r--development/pil/pil.SlackBuild21
1 files changed, 5 insertions, 16 deletions
diff --git a/development/pil/pil.SlackBuild b/development/pil/pil.SlackBuild
index d5d1711351..ead5623f58 100644
--- a/development/pil/pil.SlackBuild
+++ b/development/pil/pil.SlackBuild
@@ -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