aboutsummaryrefslogtreecommitdiff
path: root/system/gksu/gksu.SlackBuild
diff options
context:
space:
mode:
authorStylianos Tsampas <ztsampas@otenet.gr>2010-05-13 00:40:27 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:40:27 +0200
commitb3a4ac24499aef1caa034e6391f29b671ec7b021 (patch)
treea5a9dcd50bfe3267acdb7a1de3217c06ca0fa86f /system/gksu/gksu.SlackBuild
parent84fb3a7ce4a1831cf1321ed8aaf6363e3d7f7673 (diff)
system/gksu: Updated for version 2.0.0
Diffstat (limited to 'system/gksu/gksu.SlackBuild')
-rw-r--r--system/gksu/gksu.SlackBuild16
1 files changed, 11 insertions, 5 deletions
diff --git a/system/gksu/gksu.SlackBuild b/system/gksu/gksu.SlackBuild
index eb5732ef2a3e..c081092ba21c 100644
--- a/system/gksu/gksu.SlackBuild
+++ b/system/gksu/gksu.SlackBuild
@@ -34,10 +34,13 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
set -e
@@ -59,6 +62,7 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
@@ -72,12 +76,14 @@ make
make install DESTDIR=$PKG
# Fix to gksu.desktop to open xfce-terminal
-sed s/_USER_TERM_/${TERM_APP:-terminal}/ $CWD/gksu.desktop \
+sed s/@USERTERM@/${TERM_APP:-terminal}/ $CWD/gksu.desktop \
> $PKG/usr/share/applications/gksu.desktop
( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
- find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null || true
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
)
( cd $PKG/usr/man || exit 1
@@ -88,7 +94,7 @@ sed s/_USER_TERM_/${TERM_APP:-terminal}/ $CWD/gksu.desktop \
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL NEWS README \
- $PKG/usr/doc/$PRGNAM-$VERSION
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
@@ -96,4 +102,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}