You need to sign in or sign up before continuing.
geogebra-classic.sh 454 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
#!/bin/sh -x
# It will run with two args: buildroot spec
BUILDROOT="$1"

SPEC="$2"

PRODUCT=geogebra-classic
PRODUCTDIR=/opt/$PRODUCT

10 11
PREINSTALL_PACKAGES="python3 rpm-build-python3"

12 13 14 15 16 17 18 19 20 21 22 23
. $(dirname $0)/common-chromium-browser.sh

subst '1iBuildRequires:rpm-build-python3' $SPEC
subst "1i%add_python3_path $PRODUCTDIR" $SPEC

move_to_opt
subst "s|/usr/share/$PRODUCT|$PRODUCTDIR|" $BUILDROOT/usr/bin/$PRODUCT

cleanup

fix_chrome_sandbox

24
add_electron_deps