diff options
author | Alan Hicks <alan@lizella.net> | 2010-05-13 00:41:25 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 00:41:25 +0200 |
commit | 07d0fb52720afaf343b9e0824527e3d970af13e3 (patch) | |
tree | 3548a423a4e6958872df66ed6a8bc127b2412966 /system/pommed/pommed.SlackBuild | |
parent | 43a0944f0e0d7b377cb3c31ff173f0fed91f1c7b (diff) |
system/pommed: Updated for version 1.26
Diffstat (limited to 'system/pommed/pommed.SlackBuild')
-rw-r--r-- | system/pommed/pommed.SlackBuild | 85 |
1 files changed, 66 insertions, 19 deletions
diff --git a/system/pommed/pommed.SlackBuild b/system/pommed/pommed.SlackBuild index e6e58844abcd..1391f8307371 100644 --- a/system/pommed/pommed.SlackBuild +++ b/system/pommed/pommed.SlackBuild @@ -23,9 +23,9 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=pommed -VERSION=1.16 +VERSION=1.26 ARCH=${ARCH:-i486} -BUILD=${BUILD:-2} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} CWD=$(pwd) @@ -33,6 +33,17 @@ TMP=${TMP:-/tmp/SBo} PKG=${TMP}/package-${PRGNAM} OUTPUT=${OUTPUT:-/tmp} +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + set -e rm -rf $PKG @@ -44,32 +55,68 @@ cd $PRGNAM-$VERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . -make pommed +# Fix a bad assumption in the pommed Makefile +# If pciutils is rebuilt to include the pkgconfig file, this can be omitted, +# but at the time of this edit (20090729), it's not present in 13.0rc1 +sed "s%@LIBDIR@%/usr/lib${LIBDIRSUFFIX}%" \ + $CWD/patches/pommed-1.26-link_libpci_a.diff | patch -p1 + +# Use our CFLAGS instead of assuming -O2 only +patch -p1 < $CWD/patches/pommed-1.26-use_custom_cflags.diff + +make OPT="$SLKCFLAGS" + +# The Makefile doesn't have an "install" target, so we'll do it manually + +# Install pommed (system daemon) +mkdir -p $PKG/usr/sbin $PKG/usr/share/pommed $PKG/etc +cp -a pommed/pommed $PKG/usr/sbin +cp -a pommed/data/* $PKG/usr/share/pommed +cat pommed.conf.mactel > $PKG/etc/pommed.conf.new -# The Makefile doesn't have an "install" option, -# so we have to do this the hard way. -strip --strip-unneeded pommed/pommed 2>/dev/null || true -install -D -m 0755 pommed/pommed $PKG/usr/sbin/pommed -install -D -m 0644 pommed.1 $PKG/usr/man/man1/pommed.1 -install -D -m 0755 $CWD/rc.pommed $PKG/etc/rc.d/rc.pommed.new -install -D -m 0644 pommed.conf.mactel $PKG/etc/pommed.conf.new -install -D -m 0644 dbus-policy.conf $PKG/etc/dbus-1/system.d/pommed.conf.new +# Install gpomme (gtk client) +mkdir -p $PKG/usr/bin $PKG/usr/share/gpomme/themes $PKG/usr/share/applications +cp -a gpomme/gpomme $PKG/usr/bin +cp -a gpomme/themes/* $PKG/usr/share/gpomme/themes +cat gpomme/gpomme.desktop > $PKG/usr/share/applications/gpomme.desktop +mkdir -p $PKG/usr/share/icons/hicolor/scalable/apps +cp -a icons/gpomme.svg $PKG/usr/share/icons/hicolor/scalable/apps +for i in 16 22 24 32 36 48 64 72 96 128 192 ; do + mkdir -p $PKG/usr/share/icons/hicolor/${i}x${i}/apps + cp -a icons/gpomme_${i}x${i}.png \ + $PKG/usr/share/icons/hicolor/${i}x${i}/apps/gpomme.png +done +# Install wmpomme (windowmaker client) +mkdir -p $PKG/usr/bin +cp -a wmpomme/wmpomme $PKG/usr/bin +mkdir -p $PKG/usr/share/pixmaps +cat icons/gpomme_192x192.xpm > $PKG/usr/share/pixmaps/gpomme.xpm + +# Install dbus config file +mkdir -p $PKG/etc/dbus-1/system.d +cat dbus-policy.conf > $PKG/etc/dbus-1/system.d/pommed.conf.new + +# Install init script +mkdir -p $PKG/etc/rc.d +cat $CWD/rc.pommed > $PKG/etc/rc.d/rc.pommed.new +chmod 0755 $PKG/etc/rc.d/rc.pommed.new + +# Install manpages +mkdir -p $PKG/usr/man/man1 +cat pommed.1 > $PKG/usr/man/man1/pommed.1 +gzip -9 $PKG/usr/man/man1/pommed.1 + +# Install docs mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a AUTHORS COPYING ChangeLog INSTALL README TODO \ $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/README.SLACKWARE > $PKG/usr/doc/$PRGNAM-$VERSION/README.SLACKWARE cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -( 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 $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh -# Make sure everything is owned by root and then build the package -chown -R root:root $PKG 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} |