summaryrefslogtreecommitdiff
path: root/system/multicorn/multicorn.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/multicorn/multicorn.SlackBuild')
-rw-r--r--system/multicorn/multicorn.SlackBuild14
1 files changed, 10 insertions, 4 deletions
diff --git a/system/multicorn/multicorn.SlackBuild b/system/multicorn/multicorn.SlackBuild
index e804aae773..eaf1c5b25d 100644
--- a/system/multicorn/multicorn.SlackBuild
+++ b/system/multicorn/multicorn.SlackBuild
@@ -23,10 +23,12 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=multicorn
-VERSION=${VERSION:-1.0.0beta1}
+VERSION=${VERSION:-1.0.0_beta1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+SRCVERSION=$(echo $VERSION | tr _ -)
+
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
@@ -60,7 +62,8 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-unzip $CWD/$PRGNAM-$VERSION.zip
+unzip $CWD/$PRGNAM-$SRCVERSION.zip
+mv $PRGNAM-$SRCVERSION $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
@@ -69,8 +72,11 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# Set Python code installation path.
-sed -i "s|install$|install --root=$PKG|" Makefile
+# Set Python code installation path and fix Makefile.
+sed -i \
+ -e "s|install$|install --root=$PKG|" \
+ -e 's|^DATA =.*$|DATA = $(wildcard sql/*--*.sql)|' \
+ Makefile
CFLAGS="$SLKCFLAGS" make
make install DESTDIR=$PKG