commit acc47c9453b39954f0e8908f15a75eecdfcc4131 Author: Ward Nakchbandi (Cosmic Fusion) Date: Thu Apr 27 19:12:29 2023 +0300 update to lunar and git diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..fa9a600 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,40 @@ +name: PikaOS Package Release + +on: + workflow_dispatch + +jobs: + build: + runs-on: self-hosted + container: + image: ubuntu:23.04 + volumes: + - /proc:/proc + options: --privileged -it + + steps: + - uses: actions/checkout@v3 + + - name: Install needed packages + run: apt update && apt install software-properties-common sudo git bc gpg gpg-agent bison build-essential ccache cpio fakeroot flex git kmod libelf-dev libncurses5-dev libssl-dev lz4 qtbase5-dev rsync schedtool wget zstd tar reprepro dpkg-sig devscripts dh-make -y + + - name: Import GPG key + id: import_gpg + uses: crazy-max/ghaction-import-gpg@v5 + with: + gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} + passphrase: ${{ secrets.PASSPHRASE }} + + - name: Install SSH key + uses: shimataro/ssh-key-action@v2 + with: + key: ${{ secrets.SSH_KEY }} + name: id_rsa + known_hosts: ${{ secrets.KNOWN_HOSTS }} + if_key_exists: replace + + - name: Build Package + run: ./main.sh + + - name: Release Package + run: ./release.sh diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..f58217c --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +steamdeck-jupiter-driver (20221213.1-99pika1-lunar) lunar; urgency=low + + * Initial Creation + + -- Ward Nakchbandi Sat, 01 Oct 2022 14:50:00 +0200 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..f7a0e3b --- /dev/null +++ b/debian/control @@ -0,0 +1,15 @@ +Source: steamdeck-jupiter-driver +Section: games +Priority: optional +Maintainer: Ward Nakchbandi +Build-Depends: debhelper-compat (= 13) +Standards-Version: 4.6.1 +Homepage: https://github.com/KyleGospo/jupiter-hw-support.git + +Package: steamdeck-jupiter-driver +Section: games +Architecture: amd64 +Depends: ${misc:Depends}, python3, python3-hid, python3-hidapi, python3-libevdev, python3-crcmod, python3-click, python3-progressbar2, libhidapi-hidraw0, libhidapi-libusb0, jq, alsa-utils, parted, python3-parted, libparted2, e2fsprogs +Provides: jupiter-fan-control, jupiter-hw-support +Description: Steam Deck Hardware Support Package +Conflicts: steamdeck-jupiter-driver-btrfs diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..ba216af --- /dev/null +++ b/debian/copyright @@ -0,0 +1,15 @@ + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + + Copyright (C) 2020-2022 Jaoquín I. Aramendía + + Everyone is permitted to copy and distribute verbatim or modified + copies of this license document, and changing it is allowed as long + as the name is changed. + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. You just DO WHAT THE FUCK YOU WANT TO. + diff --git a/debian/postinst b/debian/postinst new file mode 100755 index 0000000..37b31a3 --- /dev/null +++ b/debian/postinst @@ -0,0 +1,7 @@ +#!/bin/sh + +set -e + +systemctl enable --now jupiter-biosupdate.service || echo "jupiter-biosupdate service could not be enabled" +systemctl enable --now jupiter-controller-update.service || echo "jupiter-controller-update service could not be enabled" +systemctl enable --now jupiter-fan-control.service || echo "jupiter-fan-control service could not be enabled" diff --git a/debian/prerm b/debian/prerm new file mode 100755 index 0000000..57d67a1 --- /dev/null +++ b/debian/prerm @@ -0,0 +1,7 @@ +#!/bin/sh + +set -e + +systemctl disable --now jupiter-biosupdate.service || echo "jupiter-biosupdate service could not be disabled" +systemctl disable --now jupiter-controller-update.service || echo "jupiter-controller-update service could not be disabled" +systemctl disable --now jupiter-fan-control.service || echo "jupiter-fan-control service could not be disabled" diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..cbe925d --- /dev/null +++ b/debian/rules @@ -0,0 +1,3 @@ +#!/usr/bin/make -f +%: + dh $@ diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/debian/steamdeck-jupiter-driver.install b/debian/steamdeck-jupiter-driver.install new file mode 100644 index 0000000..197b8cc --- /dev/null +++ b/debian/steamdeck-jupiter-driver.install @@ -0,0 +1,2 @@ +usr +etc diff --git a/main.sh b/main.sh new file mode 100755 index 0000000..8bfe404 --- /dev/null +++ b/main.sh @@ -0,0 +1,29 @@ +DEBIAN_FRONTEND=noninteractive + +# Add dependent repositories +wget -q -O - https://ppa.pika-os.com/key.gpg | sudo apt-key add - +add-apt-repository https://ppa.pika-os.com +add-apt-repository ppa:pikaos/pika +add-apt-repository ppa:kubuntu-ppa/backports + +# Clone Upstream +git clone https://github.com/KyleGospo/jupiter-fan-control +git clone https://github.com/KyleGospo/jupiter-hw-support +mkdir -p ./steamdeck-jupiter-driver +cp -rvf ./jupiter-hw-support/usr ./jupiter-fan-control +cp -rvf ./jupiter-hw-support/etc ./steamdeck-jupiter-driver +cp -rvf ./jupiter-hw-support/usr ./steamdeck-jupiter-driver +cp -rvf ./debian ./steamdeck-jupiter-driver +cd ./steamdeck-jupiter-driver + +# Get build deps +ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime +apt-get build-dep ./ -y + +# Build package +dpkg-buildpackage + +# Move the debs to output +cd ../ +mkdir -p ./output +mv ./*.deb ./output/ diff --git a/release.sh b/release.sh new file mode 100755 index 0000000..98eac6c --- /dev/null +++ b/release.sh @@ -0,0 +1,11 @@ +# Sign the packages +dpkg-sig --sign builder ./output/*.deb + +# Pull down existing ppa repo db files etc +rsync -azP --exclude '*.deb' ferreo@direct.pika-os.com:/srv/www/pikappa/ ./output/repo + +# Add the new package to the repo +reprepro -V --basedir ./output/repo/ includedeb lunar ./output/*.deb + +# Push the updated ppa repo to the server +rsync -azP ./output/repo/ ferreo@direct.pika-os.com:/srv/www/pikappa/