some cleanups
[grissiom.SlackBuilds.git] / trunk / eric4 / eric4.SlackBuild
blob9ddbbf2e00617900e586c6488d8b3f1b05f58f85
1 #!/bin/sh
3 # Slackware build script for eric4
5 # Written by grissiom chaos.proton@gmail.com
7 PRGNAM=eric4
8 VERSION=${VERSION:-4.1.4}
9 ARCH=${ARCH:-noarch}
10 BUILD=${BUILD:-1}
11 TAG=${TAG:-_SBo}
13 CWD=$(pwd)
14 TMP=${TMP:-/tmp/SBo}
15 PKG=$TMP/package-$PRGNAM
16 OUTPUT=${OUTPUT:-/tmp}
19 set -e
21 rm -rf $PKG
22 mkdir -p $TMP $PKG $OUTPUT
23 cd $TMP
24 rm -rf $PRGNAM-$VERSION
25 tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
26 cd $PRGNAM-$VERSION
27 chown -R root:root .
28 find . \
29 \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
30 -exec chmod 755 {} \; -o \
31 \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
32 -exec chmod 644 {} \;
34 python install.py -b /usr/bin -i $PKG
36 ( cd $PKG
37 find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
38 find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
41 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
42 cp -a LICENSE.GPL README README-i18n.txt THANKS\
43 eric/ChangeLog eric/README-PyXML.txt eric/README-eric4-doc.txt eric/README-passive-debugging.txt\
44 $PKG/usr/doc/$PRGNAM-$VERSION
45 cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
47 mkdir -p $PKG/install
48 cat $CWD/slack-desc > $PKG/install/slack-desc
50 cd $PKG
51 /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz