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:
password:
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
RUN apt-get update && \
apt-get install -y make \
# other packages to build \
apt-get install -y curl \
make \
clang \
libxcb-cursor-dev \
rustup && \
rustup default stable

View file

@ -1,16 +1,14 @@
package = mypackage.deb
package = xwaylland-satellite-main.deb
.PHONY: compile
compile:
cd upstream && echo compile
cd upstream && cargo build --release -F systemd
.PHONY: dpkg
dpkg:
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/
sed -i "s|%date%|`date +%Y%m%d`|g" deb-package/DEBIAN/control
sed -i "s|%hash%|$(commit_abbrev)|g" deb-package/DEBIAN/control
sed -i "s|%date%|`date +%Y%m%d%H%M%S`|g" deb-package/DEBIAN/control
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

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
- Makefile: change package name & compile / dpkg target instructions
- Dockerfile.builder: required deb packages / base image
- deb-package/DEBIAN/control: Package name, depends, conflict & description
xwayland-satellite xwayland-satellite grants rootless Xwayland integration to
any Wayland compositor implementing xdg_wm_base and viewporter:
- <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
Version: 0.0.1~git%date%.%hash%-1
Package: xwaylland-satellite-main
Version: 0.0.1~git%date%-1
Section: base
Priority: optional
Architecture: amd64
Maintainer: pips <pips@e5150.fr>
Homepage: https://example.com
Suggests: suggeted-packages
Depends: depends (>= X.Y.Z), packages (>= X.Y)
Conflicts: package-from-official-repo
Description: Description of mypackage
Auto packaging of mypackage following main dev branch
Homepage: https://forge.e5150.fr/ext/xwayland-satellite
Depends: libxcb-cursor0, xcb, xwayland (>= 23.1)
Suggests: fonts-font-awesome, libappindicator3-1
Description: xwayland-satellite build from main
Auto packaging of xwayland-satellite following main dev branch

1
upstream Submodule

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