From 79245abc0c95ce44786f9ca6f954858d9f6501c8 Mon Sep 17 00:00:00 2001 From: rudson Date: Fri, 14 Dec 2007 14:28:45 +0000 Subject: git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@1533 370017ae-e619-0410-ac65-c121f96126d4 --- app/editors/kile/kile.SlackBuild | 53 +++++++++++++++++++++++----------------- app/editors/kile/slack-required | 4 +++ 2 files changed, 34 insertions(+), 23 deletions(-) create mode 100644 app/editors/kile/slack-required (limited to 'app/editors/kile') diff --git a/app/editors/kile/kile.SlackBuild b/app/editors/kile/kile.SlackBuild index a43fcf89..819c306a 100755 --- a/app/editors/kile/kile.SlackBuild +++ b/app/editors/kile/kile.SlackBuild @@ -1,21 +1,22 @@ #!/bin/bash # -# kile.SlackBuild is free software; you can redistribute it and/or modify it under the -# terms of the GNU General Public License as published by the Free Software -# Foundation; either version 2 of the License, or any later version. +# kile.SlackBuild is free software; you can redistribute +# it and/or modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of the License, +# or any later version. # -# kile.SlackBuild is distributed in the hope that it will be useful, but WITHOUT ANY -# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR -# A PARTICULAR PURPOSE. See the GNU General Public License for more details. +# kile.SlackBuild is distributed in the hope that it will +# be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General +# Public License for more details. # # You should have received a copy of the GNU General Public License along with # this program; if not, write to the Free Software Foundation, Inc., 59 Temple # Place - Suite 330, Boston, MA 02111-1307, USA # -# SlackBuild for kile -# http://downloads.sourceforge.net/kile/ -# -# Author: Rudson R. Alves +# slackbuild for kile, by Rudson R. Alves +# requires: kdelibs +# tested: kile-1.9.3 # # Look for slackbuildrc @@ -29,7 +30,7 @@ fi CWD="$(pwd)" SRC_NAME="kile" PKG_NAME="kile" -ARCH=${ARCH:=i468} +ARCH=${ARCH:=i486} SRC_VERSION=${VERSION:=1.9.3} PKG_VERSION="$(echo "$SRC_VERSION" | tr '[[:blank:]-]' '_')" BUILD=${BUILD:=1rra} @@ -38,8 +39,8 @@ TMP=${TMP:=/tmp} PKG=${PKG:=$TMP/package-$PKG_NAME} REPOS=${REPOS:=$TMP} PREFIX=${PREFIX:=/usr} -PKG_SRC="$TMP/$SRC_NAME-$SRC_VERSION" -CONF_OPTIONS=${CONF_OPTIONS:=""} +PKG_WORK="$TMP/$SRC_NAME" +CONF_OPTIONS=${CONF_OPTIONS:="--sysconfdir=/etc --localstatedir=/var --program-prefix= --program-suffix="} NUMJOBS=${NUMJOBS:="-j4"} # Set system libraries' path and optmization flags based on $ARCH @@ -65,16 +66,17 @@ ERROR_TAR=37; ERROR_MKPKG=38; ERROR_GPG=39 ERROR_PATCH=40; ERROR_VCS=41; ERROR_MKDIR=42 # Clean up any leftovers of previous builds -rm -rf "$PKG_SRC" 2> /dev/null +rm -rf "$PKG_WORK" 2> /dev/null rm -rf "$PKG" 2> /dev/null # Create directories if necessary mkdir -p "$SRC_DIR" || exit $ERROR_MKDIR mkdir -p "$PKG" || exit $ERROR_MKDIR mkdir -p "$REPOS" || exit $ERROR_MKDIR +mkdir -p "$PKG_WORK" || exit $ERROR_MKDIR # Dowload source if necessary -SRC="$SRC_NAME-$SRC_VERSION.tar.bz2" +SRC="$SRC_NAME-$VERSION.tar.bz2" URL="http://downloads.sourceforge.net/kile/$SRC" if [ ! -s "$SRC_DIR/$SRC" ] || ! bunzip2 -t "$SRC_DIR/$SRC" 2> /dev/null; then @@ -82,15 +84,16 @@ if [ ! -s "$SRC_DIR/$SRC" ] || ! bunzip2 -t "$SRC_DIR/$SRC" 2> /dev/null; then fi # Untar -cd "$TMP" +cd "$PKG_WORK" tar --no-same-owner --no-same-permissions -xvf "$SRC_DIR/$SRC" || exit $ERROR_TAR +PKG_SRC=`ls -l | awk '/^d/ { print $8 }'` cd "$PKG_SRC" # Configure CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ - --prefix="$PREFIX" --libdir="$LIBDIR" "$CONF_OPTIONS" || exit $ERROR_CONF + --prefix="$PREFIX" --libdir="$LIBDIR" $CONF_OPTIONS || exit $ERROR_CONF # Compile make $NUMJOBS || exit $ERROR_MAKE @@ -107,9 +110,13 @@ make install DESTDIR="$PKG" || exit $ERROR_INSTALL ) # Install documentation -DOCS="TODO README AUTHORS INSTALL ChangeLog COPYING" +DOCS="AUTHORS COPYING ChangeLog INSTALL README TODO" mkdir -p "$PKG/usr/doc/$PKG_NAME-$PKG_VERSION" || exit $ERROR_MKDIR -cp -a $DOCS "$PKG/usr/doc/$PKG_NAME-$PKG_VERSION" +for doc in $DOCS; do + if [ -f "$doc" ]; then + cp -a $doc "$PKG/usr/doc/$PKG_NAME-$PKG_VERSION" + fi +done # Add package description (slack-desc) mkdir -p "$PKG/install" || exit $ERROR_MKDIR @@ -121,7 +128,9 @@ cat << EODESC > "$PKG/install/slack-desc" # make exactly 11 lines for the formatting to be correct. It's also # customary to leave one space after the ':'. - |-----handy-ruler--------------------------------------------------------| + |-----handy-ruler---------------------------------------------------------| +kile: kile by Slack.Sarava +kile: kile: Kile is an integrated LATEX environment for the KDE desktop. Kile gives kile: you the ability to use all the functionalities of LATEX in a graphical kile: interface, giving you easy, immediate, and customized access to all @@ -131,7 +140,6 @@ kile: interfaces with GnuPlot and XFig, and project management. kile: kile: kile: -kile: EODESC # Build the package @@ -140,6 +148,5 @@ makepkg -l y -c n "$REPOS/$PKG_NAME-$PKG_VERSION-$ARCH-$BUILD.tgz" || exit $ERRO # Delete source and build directories if requested if [ "$CLEANUP" == "yes" ]; then - rm -rf "$PKG_SRC" "$PKG" + rm -rf "$PKG_WORK" "$PKG" fi - diff --git a/app/editors/kile/slack-required b/app/editors/kile/slack-required new file mode 100644 index 00000000..fafdeac4 --- /dev/null +++ b/app/editors/kile/slack-required @@ -0,0 +1,4 @@ +# Dependency list to kile +# +# dependency [condition] [version]] +kdelibs -- cgit v1.2.3