aboutsummaryrefslogtreecommitdiff
path: root/network/freerapid/freerapid.SlackBuild
diff options
context:
space:
mode:
authorEdinaldo P. Silva <edps.mundognu@gmail.com>2018-05-25 20:54:53 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-05-26 06:59:27 +0700
commit17c7f340b1dc1d2da087076bc3acf7cc9bd9c6d4 (patch)
tree886a0962ac04989a376bc5933929c63b13b71b3d /network/freerapid/freerapid.SlackBuild
parent274afdec82510259abbee1bd6d054b4bf9a58eb1 (diff)
network/freerapid: Updated for version 0.9u4.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'network/freerapid/freerapid.SlackBuild')
-rw-r--r--network/freerapid/freerapid.SlackBuild25
1 files changed, 13 insertions, 12 deletions
diff --git a/network/freerapid/freerapid.SlackBuild b/network/freerapid/freerapid.SlackBuild
index 4773663fc5b62..23fe6b14a97ec 100644
--- a/network/freerapid/freerapid.SlackBuild
+++ b/network/freerapid/freerapid.SlackBuild
@@ -2,7 +2,7 @@
#
# Slackware build script for freerapid.
#
-# Copyright 2015-2017 Edinaldo P. Silva, Rio de Janeiro, Brazil.
+# Copyright 2015-2018 Edinaldo P. Silva, Rio de Janeiro, Brazil.
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,9 +24,8 @@
PRGNAM=freerapid
SRCNAM=FreeRapid
-VERSION=${VERSION:-0.9.4}
-SRCVER=${SRCVER:-0.9u4}
-BUILD=${BUILD:-3}
+VERSION=${VERSION:-0.9u4}
+BUILD=${BUILD:-4}
TAG=${TAG:-_SBo}
ARCH=noarch
@@ -42,8 +41,8 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-unzip $CWD/${SRCNAM}-${SRCVER}.zip
-mv $SRCNAM-$SRCVER $PRGNAM-$VERSION
+unzip $CWD/${SRCNAM}-${VERSION}.zip
+mv $SRCNAM-$VERSION $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -52,20 +51,22 @@ 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 {} \;
+# remove MS Windows files.
+find -regex '.*\.\(exe\|bat\|chm\|ico\)$' | xargs rm -f
+rm -rf tools/gocr
+
install -d $PKG/usr/bin
install -D -m755 $CWD/frd.sh $PKG/usr/bin/freerapid
install -d $PKG/usr/share/{applications,pixmaps}
install -D -m644 $CWD/freerapid.desktop $PKG/usr/share/applications/freerapid.desktop
install -D -m644 frd.png $PKG/usr/share/pixmaps/freerapid.png
-mkdir -p $PKG/usr/share/$PRGNAM-$VERSION
-cp -a {lib,lookandfeel,search,tools,frd.*,instplgs.dat,objectdb.conf,startup.properties,syscmd.properties} \
-$PKG/usr/share/$PRGNAM-$VERSION
-
-DOCS="doc/changes.txt doc/readme.* copyright License"
+mkdir -p $PKG/usr/share/$PRGNAM
+cp -r {lib,lookandfeel,search,tools,frd.jar,objectdb.conf,startup.properties,syscmd.properties} \
+$PKG/usr/share/$PRGNAM
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
+cp copyright License doc/{changes.txt,readme.*} $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install