summaryrefslogtreecommitdiffstats
path: root/source/x/marisa/marisa.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/x/marisa/marisa.SlackBuild')
-rwxr-xr-xsource/x/marisa/marisa.SlackBuild22
1 files changed, 15 insertions, 7 deletions
diff --git a/source/x/marisa/marisa.SlackBuild b/source/x/marisa/marisa.SlackBuild
index e2c19ff9..f21f027d 100755
--- a/source/x/marisa/marisa.SlackBuild
+++ b/source/x/marisa/marisa.SlackBuild
@@ -1,7 +1,5 @@
#!/bin/bash
-# Slackware build script for marisa
-
# Copyright 2016 Heinz Wiesinger, Amsterdam, The Netherlands
# Copyright 2016, 2020 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
@@ -26,7 +24,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=marisa
-VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d- | rev)}
+SRCNAM=marisa-trie
+VERSION=${VERSION:-$(echo $SRCNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d- | rev)}
BUILD=${BUILD:-1}
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
@@ -74,9 +73,9 @@ PKG=$TMP/package-marisa
rm -rf $PKG
mkdir -p $TMP $PKG
cd $TMP
-rm -rf marisa-$VERSION
-tar xvf $CWD/marisa-$VERSION.tar.?z || exit 1
-cd marisa-$VERSION || exit 1
+rm -rf $SRCNAM-$VERSION
+tar xvf $CWD/$SRCNAM-$VERSION.tar.?z || exit 1
+cd $SRCNAM-$VERSION || exit 1
chown -R root:root .
find . \
@@ -85,6 +84,14 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \+
+if [ ! -r configure ]; then
+ if [ -x ./autogen.sh ]; then
+ NOCONFIGURE=1 ./autogen.sh
+ else
+ autoreconf -vif
+ fi
+fi
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -141,7 +148,8 @@ find $PKG | xargs 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/$PKGNAM-$VERSION
-cp -a AUTHORS ChangeLog COPYING INSTALL NEWS README \
+cp -a AUTHORS* ChangeLog* COPYING* INSTALL* NEWS* README* \
+ docs/readme* \
$PKG/usr/doc/$PKGNAM-$VERSION
mkdir -p $PKG/install