diff options
Diffstat (limited to 'network/pidgin-otr/pidgin-otr.SlackBuild')
-rw-r--r-- | network/pidgin-otr/pidgin-otr.SlackBuild | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/network/pidgin-otr/pidgin-otr.SlackBuild b/network/pidgin-otr/pidgin-otr.SlackBuild index b5a9490e75..1cded875ff 100644 --- a/network/pidgin-otr/pidgin-otr.SlackBuild +++ b/network/pidgin-otr/pidgin-otr.SlackBuild @@ -23,21 +23,22 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=pidgin-otr -VERSION=3.1.0 +VERSION=3.2.0 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PKGNAM OUTPUT=${OUTPUT:-/tmp} -PKG_NAME=$(echo $PRGNAM | tr - _) - 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 @@ -57,24 +58,30 @@ CXXFLAGS="$SLKCFLAGS" \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ - --enable-static=no + --enable-static=no \ + --build=$ARCH-slackware-linux make make install DESTDIR=$PKG ( cd $PKG - find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null - 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 + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null ) -mkdir -p $PKG/usr/doc/$PKG_NAME-$VERSION/po -cp -a README AUTHORS COPYING ChangeLog INSTALL NEWS \ - $PKG/usr/doc/$PKG_NAME-$VERSION -cp -a po/README po/ChangeLog $PKG/usr/doc/$PKG_NAME-$VERSION/po -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PKG_NAME-$VERSION/$PRGNAM.SlackBuild +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/po +cp -a \ + README AUTHORS COPYING ChangeLog INSTALL NEWS \ + $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + po/README po/ChangeLog \ + $PKG/usr/doc/$PRGNAM-$VERSION/po +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/$PKG_NAME-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz |