network/opera-developer: Fix build.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Edinaldo P. Silva 2016-11-07 07:17:20 +07:00 committed by Willy Sudiarto Raharjo
parent cb2e6dfed2
commit 9b94070c86
3 changed files with 2 additions and 31 deletions

View file

@ -1,4 +0,0 @@
# Default settings for chromium. This file is sourced by /usr/bin/chromium
# Options to pass to chromium
OPERA_FLAGS=""

View file

@ -1,19 +0,0 @@
#!/bin/bash
# Allow users to override command-line options
# Based on Gentoo's chromium package (and by extension, Debian's)
if [[ -f /etc/opera-developer/default ]]; then
. /etc/opera-developer/default
fi
# Prefer user defined CHROMIUM_USER_FLAGS (from env) over system
# default CHROMIUM_FLAGS (from /etc/chromium/default)
OPERA_FLAGS=${OPERA_USER_FLAGS:-$OPERA_FLAGS}
if [ "$ARCH" = "x86_64" ]; then
exec /usr/lib64/opera-developer/opera-developer $OPERA_FLAGS "$@"
else
exec /usr/lib/opera-developer/opera-developer $OPERA_FLAGS "$@"
fi

View file

@ -2,7 +2,7 @@
#
# Slackware build script for opera-developer.
#
# Copyright 2015-2016 Edinaldo P. Silva, Rio de Janeiro, Brazil.
# Copyright 2016 Edinaldo P. Silva, Rio de Janeiro, Brazil.
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -24,7 +24,7 @@
PRGNAM=opera-developer
VERSION=${VERSION:-42.0.2392.0}
BUILD=${BUILD:-2}
BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -88,12 +88,6 @@ elif [ "$ARCH" = "x86_64" ]; then
chmod 4755 "$PKG/usr/lib64/$PRGNAM/opera_sandbox"
fi
mkdir -p $PKG/etc/$PRGNAM/
install -Dm644 $CWD/default $PKG/etc/$PRGNAM/default
rm $PKG/usr/bin/$PRGNAM
install -Dm755 $CWD/$PRGNAM $PKG/usr/bin/$PRGNAM
mv $PKG/usr/share/doc $PKG/usr/
mv $PKG/usr/doc/$PRGNAM $PKG/usr/doc/${PRGNAM}-$VERSION
cd $PKG/usr/doc/${PRGNAM}-$VERSION/