Skip to content

Commit

Permalink
Update packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
sidevesh committed Jun 28, 2024
1 parent 25471b7 commit 1fd28aa
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 15 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@ on:
jobs:
build-deb:
name: Build and upload deb package
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Install dependencies
run: |
sudo add-apt-repository -y ppa:rockowitz/ddcutil
sudo apt-get update
sudo apt-get install -y libgtk-3-dev ddcutil libddcutil-dev libglib2.0-dev gcc
sudo apt-get install -y gcc libglib2.0-dev libgtk-4-dev libadwaita-1-dev libddcutil-dev
- name: Set up Git repository
uses: actions/checkout@v2
Expand All @@ -44,7 +43,8 @@ jobs:
steps:
- name: Install dependencies
run: |
sudo dnf install -y git-all ddcutil libddcutil libddcutil-devel gtk3-devel fedora-packager rpmdevtools gcc
sudo dnf -y upgrade
sudo dnf install -y git-all gcc glib2-devel gtk4-devel libadwaita-devel libddcutil-devel fedora-packager rpmdevtools
- name: Set up Git repository
uses: actions/checkout@v2
Expand Down
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,25 +35,24 @@ Latest rpm release is available on the releases page https://github.com/sidevesh

### Dependencies
- ddcutil library package (typically libddcutil or libddcutil-dev if not already installed with ddcutil)
- GTK 3.0
- GTK 4.0
- Libadwaita

### Steps
1. Firstly, ensure that all the dependencies are installed:

##### Arch Linux:
```
pacman -S --needed ddcutil gtk3
pacman -S --needed glib2 gtk4 libadwaita ddcutil
```
##### Ubuntu-based distros (credit @aidengilmartin):
```
sudo apt install libgtk3-dev gcc
sudo add-apt-repository ppa:rockowitz/ddcutil # add ddcutil repo
sudo apt install ddcutil libddcutil-dev
sudo apt install gcc libglib2.0-dev libgtk-4-dev libadwaita-1-dev libddcutil-dev
```
##### Fedora:
```
sudo dnf install ddcutil libddcutil libddcutil-devel gtk3-devel gcc
sudo dnf install gcc glib2-devel gtk4-devel libadwaita-devel libddcutil-devel
```
2. Ensure that your user has access to the i2c devices:
Expand Down Expand Up @@ -134,5 +133,4 @@ Project Link: [https://github.com/sidevesh/Luminance](https://github.com/sideves
- @ahshabbir : for ddcbc-api and ddcbc-gtk: https://github.com/ahshabbir/ddcbc-api
- @rockowitz : for ddcutil c api: https://github.com/rockowitz/ddcutil
- @jimmac : for the awesome new icon:
- https://github.com/jimmac
- @jimmac : for the awesome new icon: https://github.com/jimmac
2 changes: 1 addition & 1 deletion arch
Submodule arch updated from e579bb to 73d66e
1 change: 1 addition & 0 deletions build-deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ mkdir -p ./build/debian-package-files/usr/share/applications
mkdir -p ./build/debian-package-files/usr/share/glib-2.0/schemas
mkdir -p ./build/debian-package-files/usr/lib/udev/rules.d
mkdir -p ./build/debian-package-files/usr/share/icons/hicolor/scalable/apps
mkdir -p ./build/debian-package-files/usr/share/icons/hicolor/symbolic/apps

echo "Copying files to the package structure..."
cp ./debian/control ./build/debian-package-files/DEBIAN/control
Expand Down
2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ Maintainer: Swapnil Devesh <[email protected]>
Homepage: https://github.com/sidevesh/Luminance
Description: A simple GTK application to control brightness of displays including external displays supporting DDC/CI
License: GPL-3.0
Depends: libgtk-4-1, libadwaita-1-0, ddcutil, libddcutil4
Depends: libglib2.0-0, libgtk-4-1, libadwaita-1-0, libddcutil4
5 changes: 4 additions & 1 deletion rpm/com.sidevesh.Luminance.spec
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@ BuildArch: x86_64
# Define the BuildRequires and Requires packages
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gtk4)
BuildRequires: pkgconfig(libadwaita-1)
BuildRequires: pkgconfig(ddcutil)

Requires: glib2
Requires: gtk4
Requires: libadwaita
Requires: ddcutil
Requires: libddcutil

%description
Luminance is a simple GTK application that allows you to control the brightness of displays, including external displays supporting DDC/CI.
Expand Down

0 comments on commit 1fd28aa

Please sign in to comment.