Commit 15bbfc24 authored by Jeremiah Foster's avatar Jeremiah Foster
Browse files

Working on build script to translate into debhelper commands.

parent f49ed2b9
Pipeline #9373 canceled with stage
in 45 seconds
......@@ -14,9 +14,12 @@ git clone https://source.puri.sm/Purism/flossy-gnu.git
TODO...
```
Build flossy-gnu on GNU/Linux
Build flossy-gnu on Debian GNU/Linux
-----------------
While this has been tested on PureOS, it work for any Debian based
system.
flossy-gnu is a game built with the Godot game engine. If you're
building the in a Gitlab pipeline, please see the file .gitlab-ci.yml
for Gitlab continuous intgration.
......@@ -26,8 +29,11 @@ dependencies for the Godot game engine this way
1. run `sudo apt update && sudo apt install -yq wget unzip fakeroot debhelper`
2. mkdir -v -p ./downloads ./build/flossy-gnu ~/.local/share/godot/templates ~/.cache ~/.config/godot
- cd ./downloads - wget "http://download.tuxfamily.org/godotengine/${GODOT_VERSION}/Godot_v${GODOT_VERSION}-${GODOT_VARIANT}_linux_headless.64.zip" - wget "http://downloads.tuxfamily.org/godotengine/${GODOT_VERSION}/Godot_v${GODOT_VERSION}-${GODOT_VARIANT}_export_templates.tpz" - unzip Godot_v*_linux_headless.64.zip - unzip Godot_v*_export_templates.tpz - mv -v Godot_v*_linux_headless.64 /bin/godot - mv -v templates ~/.local/share/godot/templates/${GODOT_VERSION}.${GODOT_VARIANT} - cd .. - rm -rf ./downloads script: - godot -v -q --path ./$BUILD_NAME --export "Linux/X11" ../build/$DEB_NAME-$DEB_VERSION/$BUILD_NAME.x64 - mv -v ./debian/*.desktop ./build/$DEB_NAME-$DEB_VERSION - cp -v ./$BUILD_NAME/icon.png ./build/$DEB_NAME-$DEB_VERSION - ls -la ./build/$DEB_NAME-$DEB_VERSION - strip --strip-unneeded --remove-section=.comment --remove-section=.note ./build/$DEB_NAME-$DEB_VERSION/$BUILD_NAME.x64 - cd ./build - tar -vcJf ${DEB_NAME}_${DEB_VERSION}.orig.tar.xz $DEB_NAME-$DEB_VERSION - cd ./$DEB_NAME-$DEB_VERSION - cp -v -r ../../debian .
3. cd ./downloads
4. wget "http://download.tuxfamily.org/godotengine/${GODOT_VERSION}/Godot_v${GODOT_VERSION}-${GODOT_VARIANT}_linux_headless.64.zip"
I believe that this download is already in PureOS as the package godot3-server (it seems to produce the same output.)
5. wget "http://downloads.tuxfamily.org/godotengine/${GODOT_VERSION}/Godot_v${GODOT_VERSION}-${GODOT_VARIANT}_export_templates.tpz"
6/ unzip Godot_v*_linux_headless.64.zip - unzip Godot_v*_export_templates.tpz - mv -v Godot_v*_linux_headless.64 /bin/godot - mv -v templates ~/.local/share/godot/templates/${GODOT_VERSION}.${GODOT_VARIANT} - cd .. - rm -rf ./downloads script: - godot -v -q --path ./$BUILD_NAME --export "Linux/X11" ../build/$DEB_NAME-$DEB_VERSION/$BUILD_NAME.x64 - mv -v ./debian/*.desktop ./build/$DEB_NAME-$DEB_VERSION - cp -v ./$BUILD_NAME/icon.png ./build/$DEB_NAME-$DEB_VERSION - ls -la ./build/$DEB_NAME-$DEB_VERSION - strip --strip-unneeded --remove-section=.comment --remove-section=.note ./build/$DEB_NAME-$DEB_VERSION/$BUILD_NAME.x64 - cd ./build - tar -vcJf ${DEB_NAME}_${DEB_VERSION}.orig.tar.xz $DEB_NAME-$DEB_VERSION - cd ./$DEB_NAME-$DEB_VERSION - cp -v -r ../../debian .
- fakeroot dpkg-buildpackage -F
- ls -la ..
## License and Copyright
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment