From 1b498acfb95db50658c6172e84f56b1dc38450bb Mon Sep 17 00:00:00 2001 From: Victoria Brekenfeld Date: Wed, 9 Feb 2022 18:02:11 +0100 Subject: [PATCH] Add debian packaging --- .gitignore | 15 ++++++++++++++- debian/changelog | 5 +++++ debian/control | 26 ++++++++++++++++++++++++++ debian/copyright | 7 +++++++ debian/postinst | 2 ++ debian/rules | 25 +++++++++++++++++++++++++ debian/source/format | 1 + 7 files changed, 80 insertions(+), 1 deletion(-) create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/postinst create mode 100755 debian/rules create mode 100644 debian/source/format diff --git a/.gitignore b/.gitignore index ea8c4bf7..8aa537cf 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,14 @@ -/target +debian/* +!debian/cfs-tweak.service +!debian/changelog +!debian/control +!debian/copyright +!debian/postinst +!debian/rules +!debian/source +.cargo +target +vendor +vendor.tar +.vscode +*.log \ No newline at end of file diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 00000000..ef9f0688 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +cosmic-comp (0.1) jammy; urgency=medium + + * Initial pre-release. + + -- Victoria Brekenfeld Wed, 09 Feb 2022 14:20:23 +0100 diff --git a/debian/control b/debian/control new file mode 100644 index 00000000..2eb54cf5 --- /dev/null +++ b/debian/control @@ -0,0 +1,26 @@ +Source: cosmic-comp +Section: x11 +Priority: optional +Maintainer: Victoria Brekenfeld +Build-Depends: + cargo, + debhelper-compat (=10), + rustc (>=1.57), + libudev-dev, + libegl1-mesa-dev, + libgl1-mesa-dri, + libgbm-dev, + libinput-dev, + libdbus-1-dev, + libwayland-dev, + libxcb1-dev, + libxkbcommon-dev, + libsystemd-dev, + libseat-dev +Standards-Version: 4.1.1 +Homepage: https://github.com/pop-os/cosmic-comp + +Package: cosmic-comp +Architecture: amd64 arm64 +Depends: ${misc:Depends}, ${shlibs:Depends} +Description: Wayland compositor of pop-os cosmic shell diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 00000000..85347b66 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,7 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: cosmic-comp +Upstream-Contact: Victoria Brekenfeld +Source: https://github.com/pop-os/cosmic-comp +Files: * +Copyright: System76 +License: GPL-3.0-only \ No newline at end of file diff --git a/debian/postinst b/debian/postinst new file mode 100644 index 00000000..f1901d75 --- /dev/null +++ b/debian/postinst @@ -0,0 +1,2 @@ +#!/bin/sh +set -x diff --git a/debian/rules b/debian/rules new file mode 100755 index 00000000..c8f4dd04 --- /dev/null +++ b/debian/rules @@ -0,0 +1,25 @@ +#!/usr/bin/make -f + +export sysconfdir = "/usr/share" +export VENDOR ?= 1 +CLEAN ?= 1 + +%: + dh $@ --with=systemd + +override_dh_auto_clean: +ifeq ($(CLEAN),1) + ischroot && make clean || make distclean +endif +ifeq ($(VENDOR),1) + ischroot || make vendor +endif + +override_dh_auto_build: + CARGO_HOME="$$(pwd)/target/cargo" make + +override_dh_installinit: + dh_installinit -r + +override_dh_systemd_start: + dh_systemd_start -r \ No newline at end of file diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 00000000..9f674278 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) \ No newline at end of file