summaryrefslogtreecommitdiff
path: root/network/newsbeuter/newsbeuter.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/newsbeuter/newsbeuter.SlackBuild')
-rw-r--r--network/newsbeuter/newsbeuter.SlackBuild11
1 files changed, 7 insertions, 4 deletions
diff --git a/network/newsbeuter/newsbeuter.SlackBuild b/network/newsbeuter/newsbeuter.SlackBuild
index 1c9a67d945..ee67ec53cb 100644
--- a/network/newsbeuter/newsbeuter.SlackBuild
+++ b/network/newsbeuter/newsbeuter.SlackBuild
@@ -5,7 +5,7 @@
# Released under the WTFPL
PRGNAM=newsbeuter
-VERSION=1.2
+VERSION=${VERSION:-1.3}
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
@@ -36,8 +38,9 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 \
-o -perm 400 \) -exec chmod 644 {} \;
-CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" \
- prefix=/usr docdir=/usr/doc/$PRGNAM-$VERSION mandir=/usr/man make
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+ make prefix=/usr docdir=/usr/doc/$PRGNAM-$VERSION mandir=/usr/man
make prefix=$PKG/usr docdir=$PKG/usr/doc/$PRGNAM-$VERSION \
mandir=$PKG/usr/man install
@@ -47,7 +50,7 @@ find $PKG | xargs file | grep -e "executable" -e "shared object"| grep ELF | \
( 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
)
cp -a [ACLRT]* $PKG/usr/doc/$PRGNAM-$VERSION