Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 66 lines (59 sloc) 1.8 KB
#!/bin/bash
# Written by James Cameron <quozl@laptop.org>
# Public Domain
set -e
# build - sugar-artwork
cd /usr/src/sugar-artwork && (
./autogen.sh --prefix=/usr
make
make install
echo ok
) > /usr/src/install-sugar-artwork.log 2>&1
# build - sugar-toolkit-gtk3
cd /usr/src/sugar-toolkit-gtk3 && (
./autogen.sh --prefix /usr --with-python3
make
make install
rsync -r /usr/lib/python3.7/site-packages/sugar3 /usr/lib/python3.7/dist-packages/
git clean -dfx
./autogen.sh --prefix /usr --with-python2
make
make install
echo ok
) > /usr/src/install-sugar-toolkit-gtk3.log 2>&1
# build - sugar-datastore
cd /usr/src/sugar-datastore && (
./autogen.sh --prefix /usr
make
make install
rsync -r /usr/lib/python3.7/site-packages/carquinyol /usr/lib/python3.7/dist-packages/
echo ok
) > /usr/src/install-sugar-datastore.log 2>&1
# build - sugar
cd /usr/src/sugar && (
./autogen.sh --prefix /usr
make
make install
mv /usr/lib/python3.7/site-packages/jarabe /usr/lib/python3.7/dist-packages/
echo ok
) > /usr/src/install-sugar.log 2>&1
# build - gwebsockets
cd /usr/src/gwebsockets && (
git clean -dfx
python3 setup.py build
python3 setup.py install --prefix /usr
cp -pr gwebsockets /usr/lib/python3.7/dist-packages/
echo ok
) > /usr/src/install-gwebsockets.log 2>&1
# replace all installed activities with sugar activities from source
# side effect: debian package version mismatch
(
mkdir /usr/share/sugar/activities
cd /usr/src/sugar-activities
for ACTIVITY in *.activity; do
echo $ACTIVITY
rm -rf /usr/share/sugar/activities/$ACTIVITY
(cd /usr/share/sugar/activities &&
ln -s /usr/src/sugar-activities/$ACTIVITY) && echo ok
done
) > /usr/src/install-sugar-activities.log 2>&1