diff options
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 9862faf1c9..ac207050ec 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 |