Commit 405af789 authored by Razvan Radulescu's avatar Razvan Radulescu

Build DEB package

parent 4955be2d
Pipeline #5092 failed with stage
variables:
BUILD_NAME: game
GODOT_VERSION: 3.0.6
GODOT_VARIANT: stable
DEB_VERSION: "0.1"
DEB_NAME: "flossy-gnu"
BUILD_NAME: "game"
GODOT_VERSION: "3.1"
GODOT_VARIANT: "stable"
purism:
stage: build
before_script:
- apt-get update -q
- apt-get install -yq wget unzip
- mkdir -v -p ./downloads ./build
- apt-get install -yq wget unzip fakeroot debhelper
- mkdir -v -p ./downloads ./build/$DEB_NAME-$DEB_VERSION
- mkdir -v -p ~/.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"
......@@ -20,10 +22,15 @@ purism:
- cd ..
- rm -rf ./downloads
script:
- godot -v -q --path ./game --export "Linux/X11" ../build/$BUILD_NAME.x64
- godot -v -q --path ./$BUILD_NAME --export "Linux/X11" ../build/$DEB_NAME-$DEB_VERSION/$BUILD_NAME.x64
- ls -la ./build
- strip --strip-unneeded --remove-section=.comment --remove-section=.note ./build/$DEB_NAME-$DEB_VERSION/$BUILD_NAME.x64
- tar -cJf ./build/${DEB_NAME}_${DEB_VERSION}.orig.tar.xz ./build/$DEB_NAME-$DEB_VERSION/*
- cp -v -r ./debian ./build/$DEB_NAME-$DEB_VERSION
- mv -v ./build/$DEB_NAME-$DEB_VERSION/debian/*.desktop ./build/$DEB_NAME-$DEB_VERSION
- cd ./build/$DEB_NAME-$DEB_VERSION
- fakeroot dpkg-buildpackage -F
artifacts:
name: $BUILD_NAME-$CI_JOB_NAME
name: $DEB_NAME-$DEB_VERSION-$CI_JOB_NAME
paths:
- ./build
tags:
- librem5
flossy-gnu (0.1-1) unstable; urgency=medium
* Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP>
-- Răzvan Rădulescu <razcore.art@gmail.com> Mon, 18 Mar 2019 16:37:02 +0200
Source: flossy-gnu
Section: games
Priority: optional
Maintainer: Răzvan Rădulescu <razcore.art@gmail.com>
Build-Depends: debhelper (>= 11)
Standards-Version: 4.1.3
Homepage: https://source.puri.sm/Purism/flossy-gnu
#Vcs-Browser: https://salsa.debian.org/debian/flossy-gnu
#Vcs-Git: https://salsa.debian.org/debian/flossy-gnu.git
Package: flossy-gnu
Architecture: amd64
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Flossy GNU PureOS Godot game.
Flossy GNU PureOS Godot game for Purism/Librem5 mobile phone.
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: flossy-gnu
Source: <url:https://source.puri.sm/Purism/flossy-gnu>
Files: *
Copyright: <2019> Răzvan Rădulescu <razcore.art@gmail.com>
<years> <likewise for another author>
License: GPL-3.0+
Files: debian/*
Copyright: 2019 Răzvan Rădulescu <razcore.art@gmail.com>
License: GPL-3.0+
License: GPL-3.0+
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
.
On Debian systems, the complete text of the GNU General
Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
flossy-gnu_0.1-1_amd64.buildinfo games optional
flossy-gnu_0.1-1_amd64.deb games optional
[Desktop Entry]
Name=FlossyGNU
Comment=Flossy GNU Purism game
Exec=/usr/games/flossygnu
Icon=/usr/share/flossy-gnu/icon.png
Terminal=false
Type=Application
Categories=Game;
misc:Depends=
misc:Pre-Depends=
#!/usr/bin/make -f
ICON = $(CURDIR)/icon.png
PCK = $(CURDIR)/game.pck
EXEC = $(CURDIR)/game.x64
DESK = $(CURDIR)/flossy-gnu.desktop
DST_GAME = $(CURDIR)/debian/flossy-gnu/usr/share/flossy-gnu
DST_DESK = $(CURDIR)/debian/flossy-gnu/usr/share/applications
DST_EXEC = $(CURDIR)/debian/flossy-gnu/usr/games
build: build-stamp
build-stamp:
dh_testdir
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp
dh_clean
install: build clean $(ICON) $(PCK) $(EXEC) $(DESK)
dh_testdir
dh_testroot
dh_prep
dh_installdirs
mkdir -m 755 -p $(DST_GAME)
mkdir -m 755 -p $(DST_EXEC)
mkdir -m 755 -p $(DST_DESK)
install -m 666 -p $(ICON) $(DST_GAME)
install -m 666 -p $(PCK) $(DST_GAME)
install -m 777 -p $(EXEC) $(DST_GAME)
install -m 777 -p $(DESK) $(DST_DESK)
ln -s $(EXEC) $(DST_EXEC)/flossy-gnu
binary-indep: build install
dh_testdir
dh_testroot
dh_installchangelogs
dh_installdocs
dh_installexamples
dh_installman
dh_link
dh_compress
dh_fixperms
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
binary-arch: build install
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
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