Add debian/ packaging
This commit is contained in:
parent
0ca4ee69d3
commit
e35c8767d1
5 changed files with 49 additions and 4 deletions
5
debian/changelog
vendored
Normal file
5
debian/changelog
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
cosmic-idle (0.1.0) jammy; urgency=medium
|
||||
|
||||
* Initial release.
|
||||
|
||||
-- Ian Douglas Scott <idscott@system76.com> Wed, 16 Oct 2024 21:32:21 -0700
|
||||
21
debian/control
vendored
Normal file
21
debian/control
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
Source: cosmic-idle
|
||||
Section: admin
|
||||
Priority: optional
|
||||
Maintainer: System76 <info@system76.com>
|
||||
Build-Depends:
|
||||
debhelper (>= 11),
|
||||
debhelper-compat (= 11),
|
||||
cargo,
|
||||
just,
|
||||
libxkbcommon-dev,
|
||||
libwayland-dev,
|
||||
pkg-config,
|
||||
Standards-Version: 4.3.0
|
||||
Homepage: https://github.com/pop-os/cosmic-idle
|
||||
|
||||
Package: cosmic-idle
|
||||
Architecture: amd64 arm64
|
||||
Depends:
|
||||
${misc:Depends},
|
||||
${shlibs:Depends}
|
||||
Description: Cosmic OSD
|
||||
22
debian/rules
vendored
Executable file
22
debian/rules
vendored
Executable file
|
|
@ -0,0 +1,22 @@
|
|||
#!/usr/bin/make -f
|
||||
|
||||
export DESTDIR = debian/tmp
|
||||
export VENDOR ?= 1
|
||||
|
||||
%:
|
||||
dh $@
|
||||
|
||||
override_dh_auto_clean:
|
||||
if ! ischroot && test "${VENDOR}" = "1"; then \
|
||||
mkdir -p .cargo; \
|
||||
cargo vendor | head -n -1 > .cargo/config.toml; \
|
||||
echo 'directory = "vendor"' >> .cargo/config.toml; \
|
||||
tar pcf vendor.tar vendor; \
|
||||
rm -rf vendor; \
|
||||
fi
|
||||
|
||||
override_dh_auto_build:
|
||||
just build-vendored
|
||||
|
||||
override_dh_auto_install:
|
||||
just rootdir=$(DESTDIR) install
|
||||
1
debian/source/format
vendored
Normal file
1
debian/source/format
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
3.0 (native)
|
||||
4
justfile
4
justfile
|
|
@ -12,9 +12,6 @@ cargo-target-dir := env('CARGO_TARGET_DIR', 'target')
|
|||
bin-src := cargo-target-dir / 'release' / name
|
||||
bin-dst := base-dir / 'bin' / name
|
||||
|
||||
daemon-src := cargo-target-dir / 'release' / name + '-daemon'
|
||||
daemon-dst := base-dir / 'bin' / name + '-daemon'
|
||||
|
||||
# Default recipe which runs `just build-release`
|
||||
default: build-release
|
||||
|
||||
|
|
@ -53,7 +50,6 @@ run *args:
|
|||
|
||||
install:
|
||||
install -Dm0755 {{bin-src}} {{bin-dst}}
|
||||
install -Dm0755 {{daemon-src}} {{daemon-dst}}
|
||||
|
||||
# Uninstalls installed files
|
||||
uninstall:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue