aboutsummaryrefslogtreecommitdiff
path: root/misc/ydpdict/ydpdict.SlackBuild
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2021-08-14 12:15:27 +1200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-08-14 21:17:55 +0700
commit99f2ffb8d6075a62e914e9a1aeda399b17118137 (patch)
tree0a945769c9e8fbc92f96dc50bd8b758408724e33 /misc/ydpdict/ydpdict.SlackBuild
parenta142215b52998858b829e31a4aeb7ff038a5f1f5 (diff)
misc/ydpdict: Updated for version 1.0.3.
This fixes building on -current. Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'misc/ydpdict/ydpdict.SlackBuild')
-rw-r--r--misc/ydpdict/ydpdict.SlackBuild14
1 files changed, 7 insertions, 7 deletions
diff --git a/misc/ydpdict/ydpdict.SlackBuild b/misc/ydpdict/ydpdict.SlackBuild
index d4f7832e4428a..287c7a7d300a8 100644
--- a/misc/ydpdict/ydpdict.SlackBuild
+++ b/misc/ydpdict/ydpdict.SlackBuild
@@ -8,14 +8,14 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=ydpdict
-VERSION=${VERSION:-1.0.2}
+VERSION=${VERSION:-1.0.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -33,8 +33,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -63,6 +63,8 @@ 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 {} \;
+./autogen.sh
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -75,8 +77,6 @@ CXXFLAGS="$SLKCFLAGS" \
--disable-static \
--build=$ARCH-slackware-linux
-patch -p0 < $CWD/ydpdict.patch
-
make
make install DESTDIR=$PKG
@@ -91,7 +91,7 @@ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; r
mv $PKG/etc/ydpdict.conf $PKG/etc/ydpdict.conf.new
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a COPYING README $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a COPYING README.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install