📦 ♻️ Refactor a bunch of stuff; debian packaging

This commit is contained in:
Lucy 2022-07-07 16:45:17 -04:00
parent a0091235a4
commit a67a677a1a
No known key found for this signature in database
GPG key ID: EBC517FAD666BBF1
15 changed files with 1119 additions and 149 deletions

5
debian/changelog vendored Normal file
View file

@ -0,0 +1,5 @@
cosmic-session (0.1.0) UNRELEASED; urgency=medium
* Initial release.
-- Lucy <lucy@system76.com> Thu, 07 Jul 2022 14:42:01 -0400

20
debian/control vendored Normal file
View file

@ -0,0 +1,20 @@
Source: cosmic-session
Section: admin
Priority: optional
Maintainer: System76 <info@system76.com>
Build-Depends:
debhelper (>= 11),
debhelper-compat (= 11),
cargo,
just
Standards-Version: 4.3.0
Homepage: https://github.com/pop-os/cosmic-session
Package: cosmic-session
Architecture: amd64 arm64
Depends:
${misc:Depends},
${shlibs:Depends},
cosmic-panel,
cosmic-comp
Description: The session for the COSMIC desktop

7
debian/copyright vendored Normal file
View file

@ -0,0 +1,7 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: cosmic-session
Source: https://github.com/pop-os/cosmic-session
Files: *
Copyright: Copyright 2022 System76
License: GPL-3.0-only

30
debian/rules vendored Executable file
View file

@ -0,0 +1,30 @@
#!/usr/bin/make -f
DESTDIR = debian/pop-snapshot
CLEAN ?= 1
VENDOR ?= 1
%:
dh $@
override_dh_shlibdeps:
dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info
override_dh_auto_clean:
if test "${CLEAN}" = "1"; then \
cargo clean; \
fi
if ! ischroot && test "${VENDOR}" = "1"; then \
mkdir -p .cargo; \
cargo vendor --sync Cargo.toml | head -n -1 > .cargo/config; \
echo 'directory = "vendor"' >> .cargo/config; \
tar pcf vendor.tar vendor; \
rm -rf vendor; \
fi
override_dh_auto_build:
just rootdir=$(DESTDIR) debug=$(DEBUG) vendor=$(VENDOR)
override_dh_auto_install:
just rootdir=$(DESTDIR) install

1
debian/source/format vendored Normal file
View file

@ -0,0 +1 @@
3.0 (native)