chore: debian packaging

This commit is contained in:
Ashley Wulber 2022-05-25 17:11:42 -04:00
parent 185dd48a6f
commit 6b56500a52
No known key found for this signature in database
GPG key ID: BCD0B777C3F6E2FD
19 changed files with 453 additions and 0 deletions

5
debian/changelog vendored Normal file
View file

@ -0,0 +1,5 @@
cosmic-applets (0.1.0) UNRELEASED; urgency=medium
* Initial release.
-- Ashley Wulber <ashley@system76.com> Thu, 07 Apr 2022 09:39:19 -0700

21
debian/control vendored Normal file
View file

@ -0,0 +1,21 @@
Source: cosmic-applets
Section: admin
Priority: optional
Maintainer: system76 <info@system76.com>
Build-Depends:
debhelper (>= 11),
debhelper-compat (= 11),
rustc (>=1.57),
cargo,
libgtk-4-dev,
just,
pkg-config,
Standards-Version: 4.3.0
Homepage: https://github.com/pop-os/cosmic-applets
Package: cosmic-applets
Architecture: amd64 arm64
Depends:
${misc:Depends},
${shlibs:Depends}
Description: XDG Shell Wrapper

9
debian/copyright vendored Normal file
View file

@ -0,0 +1,9 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: cosmic-applets
Source: https://github.com/pop-os/cosmic-applets
Files: *
Copyright: Copyright 2022 system76
License: MPL-2.0
The complete text of the Mozilla Public License 2.0 can be found in
the file `/usr/share/common-licenses/MPL-2.0'.

30
debian/rules vendored Executable file
View file

@ -0,0 +1,30 @@
#!/usr/bin/make -f
DESTDIR = debian/cosmic-applets
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)