summaryrefslogtreecommitdiff
path: root/ham/cqrlog/cqrlog.SlackBuild
diff options
context:
space:
mode:
authorGustavo Conrad <gus3963 gmail>2019-02-03 09:17:50 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-02-03 09:17:50 +0700
commit467963186d64300a60b0a8f45acd458bdb45dd75 (patch)
tree814467bdeb70ad4048609248fe77a1b69192c0ef /ham/cqrlog/cqrlog.SlackBuild
parent8456407ac976e7f6190bd5b28239020d681afed2 (diff)
downloadslackbuilds-467963186d64300a60b0a8f45acd458bdb45dd75.tar.gz
ham/cqrlog: Updated for version 2.3.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'ham/cqrlog/cqrlog.SlackBuild')
-rw-r--r--ham/cqrlog/cqrlog.SlackBuild17
1 files changed, 12 insertions, 5 deletions
diff --git a/ham/cqrlog/cqrlog.SlackBuild b/ham/cqrlog/cqrlog.SlackBuild
index 5770b0e1d4..1efae22e27 100644
--- a/ham/cqrlog/cqrlog.SlackBuild
+++ b/ham/cqrlog/cqrlog.SlackBuild
@@ -23,13 +23,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=cqrlog
-VERSION=${VERSION:-1.9.0}
+VERSION=${VERSION:-2.3.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -40,8 +40,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"
@@ -60,7 +60,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/v$VERSION.tar.gz || tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -69,6 +69,13 @@ 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 {} \;
+sed -i 's/--ws=gtk2 --pcp=$(tmpdir)\/.lazarus src/--lazarusdir=\/usr\/share\/lazarus --ws=gtk2 --pcp=$(tmpdir)\/.lazarus src/g' Makefile
+
+# fix runtime issue due to lazarus version, see https://www.cqrlog.com/node/2072
+cd tools
+./remove_unknown_properties
+
+cd ..
make
make install DESTDIR=$PKG