aboutsummaryrefslogtreecommitdiff
path: root/libraries/libasr/libasr.SlackBuild
diff options
context:
space:
mode:
authorRichard Narron <richard@aaazen.com>2015-07-22 14:53:48 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-07-22 14:53:48 +0700
commit185d5c9d2009bb771cc1befc6995f5ecff3bcf0d (patch)
tree4f45a568e09941c17b252986f4b78c772aa89974 /libraries/libasr/libasr.SlackBuild
parentbc7f2cb561bbe6040b2c59ae63a150627f917ed4 (diff)
libraries/libasr: Updated for version 1.0.2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/libasr/libasr.SlackBuild')
-rw-r--r--libraries/libasr/libasr.SlackBuild17
1 files changed, 10 insertions, 7 deletions
diff --git a/libraries/libasr/libasr.SlackBuild b/libraries/libasr/libasr.SlackBuild
index 6fe0a1d24b069..938a1baf13b4d 100644
--- a/libraries/libasr/libasr.SlackBuild
+++ b/libraries/libasr/libasr.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=libasr
-VERSION=${VERSION:-1.0.1}
+VERSION=${VERSION:-1.0.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -41,16 +41,16 @@ PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686 -fstack-protector"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686 -fstack-protector"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
+ SLKCFLAGS="-O2 -fPIC -fstack-protector"
LIBDIRSUFFIX="64"
else
- SLKCFLAGS="-O2"
+ SLKCFLAGS="-O2 -fstack-protector"
LIBDIRSUFFIX=""
fi
@@ -87,9 +87,12 @@ make install DESTDIR=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a ChangeLog LICENCE README* $PKG/usr/doc/$PRGNAM-$VERSION
-cp $CWD/$PRGNAM.SlackBuild $PKG/usr/doc/$PRGNAM-$VERSION
+cp $CWD/$PRGNAM.SlackBuild $PKG/usr/doc/$PRGNAM-$VERSION
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc