diff options
author | B. Watson <yalhcru@gmail.com> | 2010-05-12 23:33:45 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-12 23:33:45 +0200 |
commit | b66ea6bff79fa39a975185da4279eff06160869f (patch) | |
tree | e71ee0c28acc38d7fc83a52001c099c6b885486e /system/pipemeter/pipemeter.SlackBuild | |
parent | 6d671cdcf62cf5f6bb4d9782f21e2e0517e8c364 (diff) | |
download | slackbuilds-b66ea6bff79fa39a975185da4279eff06160869f.tar.gz |
system/pipemeter: Added to 12.2 repository
Diffstat (limited to 'system/pipemeter/pipemeter.SlackBuild')
-rw-r--r-- | system/pipemeter/pipemeter.SlackBuild | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/system/pipemeter/pipemeter.SlackBuild b/system/pipemeter/pipemeter.SlackBuild new file mode 100644 index 0000000000..37e1170087 --- /dev/null +++ b/system/pipemeter/pipemeter.SlackBuild @@ -0,0 +1,62 @@ +#!/bin/sh + +# Slackware build script for pipemeter + +# Written by B. Watson (yalhcru@gmail.com) + +PRGNAM=pipemeter +VERSION=${VERSION:-1.1.3} +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +chmod -R a-s,u+w,go+r-w . + +CFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man + +make + +# 'make install' doesn't create these for us: +mkdir -p $PKG/usr/bin $PKG/usr/man/man1 +# ...but it does strip the pipemeter binary. +make install PREFIX=$PKG/usr + +cp pipecp $PKG/usr/bin +gzip -9 $PKG/usr/man/man1/$PRGNAM.1 + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp README LICENSE Changelog $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz |