Permalink
Cannot retrieve contributors at this time
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?
sugar-live-build/src/config/hooks/normal/0900-sugar.hook.chroot
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
executable file
66 lines (59 sloc)
1.8 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |