aboutsummaryrefslogtreecommitdiff
path: root/desktop/fbpanel
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2012-09-17 20:00:32 +0200
committerRobby Workman <rworkman@slackbuilds.org>2012-09-17 23:34:12 -0500
commit0713c4ca79748b6ab0365ff92cdf0dd7e19180ca (patch)
treef82fab25ca58c5f9cbbc1554230d18eedc7892ca /desktop/fbpanel
parentcde7a52010b2db4a03362c0692f5043755cf9fae (diff)
desktop/fbpanel: Updated for version 6.1.
Lots of changes to the build procedure Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'desktop/fbpanel')
-rw-r--r--desktop/fbpanel/fbpanel.SlackBuild44
-rw-r--r--desktop/fbpanel/fbpanel.info6
2 files changed, 29 insertions, 21 deletions
diff --git a/desktop/fbpanel/fbpanel.SlackBuild b/desktop/fbpanel/fbpanel.SlackBuild
index 4eb8ab914e353..ce0fbf5b217cb 100644
--- a/desktop/fbpanel/fbpanel.SlackBuild
+++ b/desktop/fbpanel/fbpanel.SlackBuild
@@ -12,7 +12,7 @@
# Modified by the SlackBuilds.org project
PRGNAM=fbpanel
-VERSION=4.12
+VERSION=6.1
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -33,10 +33,16 @@ 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"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
fi
set -e
@@ -44,7 +50,7 @@ set -e
rm -rf $PKG $TMP/$PRGNAM-$VERSION
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-tar xvf $CWD/$PRGNAM-$VERSION.tgz
+tar xvf $CWD/$PRGNAM-$VERSION.tbz2
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
@@ -53,31 +59,33 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
+# --cxflags option don't work very well...
+sed -i "s|-O2 -Wall|$SLKCFLAGS -Wall|" rules.mk
+LIBSTOLINK="-lX11 -lgdk_pixbuf-2.0 -lgobject-2.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -lm"
+
./configure \
--prefix=/usr \
- --cpu=on
+ --libdir=/usr/lib$LIBDIRSUFFIX \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --host=$ARCH \
+ --ldflagsx="$LIBSTOLINK" \
+ --build=$ARCH-slackware-linux
make
-make install PREFIX=$PKG/usr
+make DESTDIR=$PKG install
+
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-# Strip the fbpanel binary
-strip --strip-unneeded $PKG/usr/bin/fbpanel
+# Forgotten by the "make install"
+mkdir -p $PKG/usr/man/man1
+gzip -c data/man/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- README CHANGELOG COPYING CREDITS INSTALL \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a README CHANGELOG COPYING CREDITS NOTES $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-# Fix manpage location and compress pages
-mv $PKG/usr/share/man $PKG/usr
-( cd $PKG/usr/man
- find . -type f -exec gzip -9 {} \;
- for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
-)
-
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
diff --git a/desktop/fbpanel/fbpanel.info b/desktop/fbpanel/fbpanel.info
index 58e966e4fbce1..11ee61b441041 100644
--- a/desktop/fbpanel/fbpanel.info
+++ b/desktop/fbpanel/fbpanel.info
@@ -1,8 +1,8 @@
PRGNAM="fbpanel"
-VERSION="4.12"
+VERSION="6.1"
HOMEPAGE="http://fbpanel.sourceforge.net/"
-DOWNLOAD="http://downloads.sourceforge.net/fbpanel/fbpanel-4.12.tgz"
-MD5SUM="12528e7b2936a3548840fe01acaf39f5"
+DOWNLOAD="http://downloads.sourceforge.net/fbpanel/fbpanel-6.1.tbz2"
+MD5SUM="80ca0c64195b30587cfcb8c2cd9887a0"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""