summaryrefslogtreecommitdiff
path: root/system/yash/yash.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/yash/yash.SlackBuild')
-rw-r--r--system/yash/yash.SlackBuild17
1 files changed, 9 insertions, 8 deletions
diff --git a/system/yash/yash.SlackBuild b/system/yash/yash.SlackBuild
index 591b8710f1..50f3ee5b2d 100644
--- a/system/yash/yash.SlackBuild
+++ b/system/yash/yash.SlackBuild
@@ -3,6 +3,7 @@
# Slackware build script for yash
# Copyright 2015-2018 Leonard Schmidt <lems@gmx.net>
+# Copyright 2018 Hunter Sezen <orbea@fredslev.dk>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,7 +25,7 @@
PRGNAM=yash
VERSION=${VERSION:-2.47}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -54,7 +55,7 @@ else
LIBDIRSUFFIX=""
fi
-set -e
+set -eu
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
@@ -69,11 +70,11 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-sh ./configure \
- --prefix=/usr \
- --bindir=/bin \
- --mandir=/usr/man \
- --docdir=/usr/doc/$PRGNAM-$VERSION
+CFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --bindir=/bin \
+ --mandir=/usr/man
make
make install-strip DESTDIR=$PKG
@@ -88,7 +89,7 @@ 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 NEWS README $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a COPYING NEWS NEWS.ja README README.ja THANKS $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install