feat(project): configure
Some checks failed
ci/woodpecker/push/build Pipeline failed

This commit is contained in:
pips 2025-09-23 20:22:57 +02:00
parent 05981084c9
commit 5d389265c3
7 changed files with 37 additions and 26 deletions

3
.gitmodules vendored Normal file
View file

@ -0,0 +1,3 @@
[submodule "upstream"]
path = upstream
url = https://github.com/Supreeeme/xwayland-satellite.git

View file

@ -37,5 +37,3 @@ steps:
environment: environment:
password: password:
from_secret: package_token from_secret: package_token
commit_abbrev: ${CI_COMMIT_SHA:0:7}

View file

@ -1,8 +1,9 @@
# use specific image if relevant (rust, golang)
FROM ubuntu:24.04 FROM ubuntu:24.04
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y make \ apt-get install -y curl \
# other packages to build \ make \
clang \
libxcb-cursor-dev \
rustup && \
rustup default stable

View file

@ -1,16 +1,14 @@
package = xwaylland-satellite-main.deb
package = mypackage.deb
.PHONY: compile .PHONY: compile
compile: compile:
cd upstream && echo compile cd upstream && cargo build --release -F systemd
.PHONY: dpkg .PHONY: dpkg
dpkg: dpkg:
mkdir -p deb-package/usr/bin/ mkdir -p deb-package/usr/bin/
cp upstream/bin deb-package/usr/bin/ cp upstream/target/release/xwayland-satellite deb-package/usr/bin/
chmod -R o-w deb-package/ chmod -R o-w deb-package/
sed -i "s|%date%|`date +%Y%m%d`|g" deb-package/DEBIAN/control sed -i "s|%date%|`date +%Y%m%d%H%M%S`|g" deb-package/DEBIAN/control
sed -i "s|%hash%|$(commit_abbrev)|g" deb-package/DEBIAN/control
dpkg-deb --build deb-package/ $(package) dpkg-deb --build deb-package/ $(package)
@curl --user CIBot:$(password) --upload-file $(package) $(CI_FORGE_URL)/api/packages/$(CI_REPO_OWNER)/debian/pool/noble/main/upload @curl --user CIBot:$(password) --upload-file $(package) $(CI_FORGE_URL)/api/packages/$(CI_REPO_OWNER)/debian/pool/noble/main/upload

View file

@ -1,6 +1,17 @@
# Template for external project package building # Unofficial dpkg xwayland-satellite build from main branch
- git submodule add <https://repo.example.com/external/repo.git> upstream xwayland-satellite xwayland-satellite grants rootless Xwayland integration to
- Makefile: change package name & compile / dpkg target instructions any Wayland compositor implementing xdg_wm_base and viewporter:
- Dockerfile.builder: required deb packages / base image
- deb-package/DEBIAN/control: Package name, depends, conflict & description - <https://github.com/Supreeeme/xwayland-satellite>
All credit to Supreeeme and other contributors of this fantastic project!
This repo provide semi-automatic build of main branch to ubuntu 24.04 (noble)
dpkg package:
<https://forge.e5150.fr/ext/xwayland-satellite>
License file in this repo only apply to build & packaging step files,
xwayland-satellite is licensed as Mozilla Public License Version 2.0, see
upstream project for details.

View file

@ -1,12 +1,11 @@
Package: mypackage-main Package: xwaylland-satellite-main
Version: 0.0.1~git%date%.%hash%-1 Version: 0.0.1~git%date%-1
Section: base Section: base
Priority: optional Priority: optional
Architecture: amd64 Architecture: amd64
Maintainer: pips <pips@e5150.fr> Maintainer: pips <pips@e5150.fr>
Homepage: https://example.com Homepage: https://forge.e5150.fr/ext/xwayland-satellite
Suggests: suggeted-packages Depends: libxcb-cursor0, xcb, xwayland (>= 23.1)
Depends: depends (>= X.Y.Z), packages (>= X.Y) Suggests: fonts-font-awesome, libappindicator3-1
Conflicts: package-from-official-repo Description: xwayland-satellite build from main
Description: Description of mypackage Auto packaging of xwayland-satellite following main dev branch
Auto packaging of mypackage following main dev branch

1
upstream Submodule

@ -0,0 +1 @@
Subproject commit 03368548ba745e17a85bd631613a59cb2d8469a4