Cut new release with debian builds

This commit is contained in:
Luke
2020-05-02 20:55:32 +12:00
parent f12bb1d4f6
commit b5c7a47249
12 changed files with 95 additions and 3 deletions

5
debian/changelog vendored Normal file
View File

@@ -0,0 +1,5 @@
rog-core (0.9.0) focal; urgency=medium
* Initial packaging
-- Luke Jones <luke@ljones.dev> Sat, 02 May 2020 20:17:12 +1200

1
debian/compat vendored Normal file
View File

@@ -0,0 +1 @@
9

23
debian/control vendored Normal file
View File

@@ -0,0 +1,23 @@
Source: rog-core
Section: admin
Priority: optional
Maintainer: Luke Jones <luke@ljones.dev>
Build-Depends:
debhelper (>=9),
cargo,
dh-systemd,
libusb-1.0-0-dev,
libdbus-1-dev,
pkg-config
Standards-Version: 4.1.1
Homepage: https://github.com/flukejones/rog-core
Package: rog-core
Architecture: amd64
Depends:
dbus,
systemd,
libusb-1.0-0,
${misc:Depends},
${shlib:Depends}
Description: ASUS ROG Laptop Management

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: rog-core
Source: https://github.com/flukejones/rog-core
Files: *
Copyright: Copyright 2020 Luke Jones
License: MPL-2.0

16
debian/rog-core.postinst vendored Normal file
View File

@@ -0,0 +1,16 @@
#!/bin/sh
set -e
case "$1" in
configure)
mv /etc/rogcore.conf /etc/rogcore.save || true
;;
*)
;;
esac
#DEBHELPER#
exit 0

16
debian/rog-core.postrm vendored Normal file
View File

@@ -0,0 +1,16 @@
#!/bin/sh
set -e
case "$1" in
remove)
rm -f /etc/rogcore.conf
;;
*)
;;
esac
#DEBHELPER#
exit 0

21
debian/rules vendored Normal file
View File

@@ -0,0 +1,21 @@
#!/usr/bin/make -f
export VENDORED ?= 1
CLEAN ?= 1
%:
dh $@ --with=systemd
override_dh_auto_build:
env CARGO_HOME="$$(pwd)/target/cargo" \
dh_auto_build
override_dh_auto_clean:
ifeq ($(CLEAN),1)
make clean
endif
ifeq ($(VENDORED),1)
if ! ischroot; then \
make vendor; \
fi
endif

1
debian/source/format vendored Normal file
View File

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