diff options
Diffstat (limited to 'office/kile/kile.SlackBuild')
-rw-r--r-- | office/kile/kile.SlackBuild | 35 |
1 files changed, 13 insertions, 22 deletions
diff --git a/office/kile/kile.SlackBuild b/office/kile/kile.SlackBuild index 8a56cf0535..2b005cbdae 100644 --- a/office/kile/kile.SlackBuild +++ b/office/kile/kile.SlackBuild @@ -3,17 +3,12 @@ ## Written by hollywoodb (hollywoodb@fastmail.fm) ## Package Homepage: http://kile.sourceforge.net/ -## Feel free to use, modify, redistribute this script. -## If you make changes please modify the "Written by" -## so that I don't recieve emails about a script I -## did not write. Thanks. - # Modified by the SlackBuilds.org project # Modified by Michiel van Wessem <michiel@slackbuilds.org> to update -# to version 2.0 +# to version 2.0.2 PRGNAM=kile -VERSION=2.0 +VERSION=${VERSION:-2.0.2} ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -33,36 +28,32 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT -cd $TMP || exit 1 +cd $TMP rm -rf $PRGNAM-$VERSION -tar -jxvf $CWD/$PRGNAM-$VERSION.tar.bz2 || exit 1 -cd $PRGNAM-$VERSION || exit 1 +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +cd $PRGNAM-$VERSION 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 {} \; -KDEPREF=$(kde-config --prefix) - CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ - --prefix=$KDEPREF \ + --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ + --mandir=/usr/man \ + --disable-static \ --disable-debug \ - || exit 1 - -make || exit 1 -make install DESTDIR=$PKG || exit 1 + --build=$ARCH-slackware-linux -( cd $PKG - find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null - find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null -) +make +make install DESTDIR=$PKG -( cd $PKG/usr/ ; mv share/doc . ) +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp Building-with-cmake.txt AUTHORS COPYING ChangeLog README* TODO \ |