3 # Slackware build script for QScintilla
5 # Written by grissiom chaos.proton@gmail.com
9 VERSION
=${VERSION:-2.2}
16 PKG
=$TMP/package-
$PRGNAM
17 OUTPUT
=${OUTPUT:-/tmp}
22 if [ "$ARCH" = "i486" ]; then
23 SLKCFLAGS
="-O2 -march=i486 -mtune=i686"
24 elif [ "$ARCH" = "i686" ]; then
25 SLKCFLAGS
="-O2 -march=i686 -mtune=i686"
26 elif [ "$ARCH" = "x86_64" ]; then
33 mkdir
-p $TMP $PKG $OUTPUT
35 rm -rf $PRGNAM-$VERSION
36 tar -xzvf $CWD/$PRGNAM-$VERSION.
tar.gz
40 \
( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \
) \
41 -exec chmod 755 {} \
; -o \
42 \
( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \
) \
45 # can someone feagure out what is the examples for?
47 qmake qscintilla.pro QMAKE_CXXFLAGS
="$SLKCFLAGS"
49 make install INSTALL_ROOT
=$PKG
50 # I have to install it now for the fellowing configurations.
55 qmake qscintilla.pro QMAKE_CXXFLAGS
="$SLKCFLAGS"
57 make install INSTALL_ROOT
=$PKG
61 qmake-qt4 qscintilla.pro QMAKE_CXXFLAGS
="$SLKCFLAGS"
63 make install INSTALL_ROOT
=$PKG
64 # I have to install it now for the fellowing configurations.
69 qmake-qt4 designer.pro QMAKE_CXXFLAGS
="$SLKCFLAGS"
71 make install INSTALL_ROOT
=$PKG
77 make install DESTDIR
=$PKG
90 find . |
xargs file |
grep "executable" |
grep ELF | cut
-f 1 -d : |
xargs strip
--strip-unneeded 2> /dev
/null || true
91 find . |
xargs file |
grep "shared object" |
grep ELF | cut
-f 1 -d : |
xargs strip
--strip-unneeded 2> /dev
/null
94 mkdir
-p $PKG/usr
/doc
/$PRGNAM-$VERSION
95 cp -a ChangeLog GPL_EXCEPTION_ADDENDUM.TXT GPL_EXCEPTION.TXT LICENSE.GPL2 LICENSE.GPL3 NEWS \
96 OPENSOURCE-NOTICE.TXT README
doc
/ \
97 $PKG/usr
/doc
/$PRGNAM-$VERSION
98 cat $CWD/$PRGNAM.SlackBuild
> $PKG/usr
/doc
/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
100 mkdir
-p $PKG/install
101 cat $CWD/slack-desc
> $PKG/install
/slack-desc
104 /sbin
/makepkg
-l y
-c n
$OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz