diff options
author | slakmagik <jsun@freeshell.org> | 2010-05-12 17:44:05 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-12 17:44:05 +0200 |
commit | 1776c3e9abae16e8c91a93b1635a08125d55893c (patch) | |
tree | d825553f97cea23bc7cdc530da3c6968bbb27cc7 /network/openrdate/openrdate.SlackBuild | |
parent | 2c72e370943c38c240ac549829208b9e60bcde71 (diff) |
network/openrdate: Updated for version 1.2
Diffstat (limited to 'network/openrdate/openrdate.SlackBuild')
-rw-r--r-- | network/openrdate/openrdate.SlackBuild | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/network/openrdate/openrdate.SlackBuild b/network/openrdate/openrdate.SlackBuild index 9862faf1c94f..ac207050ec32 100644 --- a/network/openrdate/openrdate.SlackBuild +++ b/network/openrdate/openrdate.SlackBuild @@ -5,7 +5,7 @@ # Released under the WTFPL PRGNAM=openrdate -VERSION=1.1.3 +VERSION=${VERSION:-1.2} ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -19,6 +19,8 @@ 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 @@ -53,15 +55,15 @@ make DESTDIR=$PKG install find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null ) -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a [ACINR]* $PKG/usr/doc/$PRGNAM-$VERSION -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 + for i in $(find . -type l); do ln -s $(readlink $i).gz $i.gz; rm $i; done ) +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a [ACINR]* $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 |