commit 0817fc9d070b13488987de4cb038ecb06c88f936 Author: Ward Nakchbandi (Cosmic Fusion) Date: Fri Aug 11 21:44:06 2023 +0300 first commit diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..6932ee7 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,49 @@ +name: PikaOS Package Release + +on: + workflow_dispatch + +jobs: + build: + runs-on: self-hosted + container: + image: ghcr.io/pikaos-linux/pika-package-container:latest + volumes: + - /proc:/proc + options: --privileged -it + + steps: + - uses: actions/checkout@v3 + + - 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: Update apt cache + run: apt-get update -y + + - name: Build Package + run: ./main.sh + + - name: Release Package + run: ./release.sh + + - name: Purge cache + uses: jakejarvis/cloudflare-purge-action@master + env: + # Zone is required by both authentication methods + CLOUDFLARE_ZONE: ${{ secrets.CLOUDFLARE_ZONE }} + + CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }} + PURGE_URLS: '["https://ppa.pika-os.com/dists/lunar/InRelease", "https://ppa.pika-os.com/dists/lunar/main/binary-i386/Packages.gz", "https://ppa.pika-os.com/dists/lunar/main/binary-amd64/Packages.gz", "https://ppa.pikaos.com/dists/lunar/pika-sources.deb", "https://ppa.pika-os.com/dists/kinetic/main/source/Sources.gz" ]' diff --git a/.github/workflows/release_i386.yml b/.github/workflows/release_i386.yml new file mode 100644 index 0000000..8ee3a85 --- /dev/null +++ b/.github/workflows/release_i386.yml @@ -0,0 +1,49 @@ +name: PikaOS Package Release (i386) + +on: + workflow_dispatch + +jobs: + build: + runs-on: self-hosted + container: + image: ghcr.io/pikaos-linux/pika-i386-package-container:latest + volumes: + - /proc:/proc + options: --privileged -it + + steps: + - uses: actions/checkout@v3 + + - 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: Update apt cache + run: apt-get update -y + + - name: Build Package + run: ./main32.sh + + - name: Release Package + run: ./release.sh + + - name: Purge cache + uses: jakejarvis/cloudflare-purge-action@master + env: + # Zone is required by both authentication methods + CLOUDFLARE_ZONE: ${{ secrets.CLOUDFLARE_ZONE }} + + CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }} + PURGE_URLS: '["https://ppa.pika-os.com/dists/lunar/InRelease", "https://ppa.pika-os.com/dists/lunar/main/binary-i386/Packages.gz", "https://ppa.pika-os.com/dists/lunar/main/binary-amd64/Packages.gz", "https://ppa.pikaos.com/dists/lunar/pika-sources.deb", "https://ppa.pika-os.com/dists/lunar/main/source/Sources.gz" ]' diff --git a/main.sh b/main.sh new file mode 100755 index 0000000..7a5c9e1 --- /dev/null +++ b/main.sh @@ -0,0 +1,17 @@ +#! /bin/bash +set -e + +# Clone Upstream +cd ./mesa-pika + +# Get build deps +apt-get build-dep ./ -y + +# Build package + +dpkg-buildpackage --no-sign + +# Move the debs to output +cd ../ +mkdir -p ./output +mv ./*.deb ./output/ diff --git a/main32.sh b/main32.sh new file mode 100755 index 0000000..37de461 --- /dev/null +++ b/main32.sh @@ -0,0 +1,20 @@ +#! /bin/bash +set -e + +# Clone Upstream +git clone https://gitlab.freedesktop.org/mesa/mesa -b mesa-23.1.5 +cp -rvf ./debian ./mesa/ +cd ./mesa +sed -i ' 1 s/.*/& - PikaOS YellowBirb Mesa Stable/' ./VERSION + +# Get build deps +apt-get build-dep ./ -y + +# Build package + +dpkg-buildpackage --no-sign + +# Move the debs to output +cd ../ +mkdir -p ./output +mv ./*.deb ./output/ diff --git a/mesa-pika/debian/changelog b/mesa-pika/debian/changelog new file mode 100644 index 0000000..1e516ed --- /dev/null +++ b/mesa-pika/debian/changelog @@ -0,0 +1,5 @@ +mesa-pika (1.0-99pika1.lunar) lunar; urgency=low + + * Initial Creation + + -- Ward Nakchbandi Sat, 01 Oct 2022 14:50:00 +0200 diff --git a/mesa-pika/debian/control b/mesa-pika/debian/control new file mode 100644 index 0000000..5a6f113 --- /dev/null +++ b/mesa-pika/debian/control @@ -0,0 +1,63 @@ +Source: mesa-pika +Section: graphics +Priority: optional +Maintainer: Ward Nakchbandi +Standards-Version: 4.6.1 +Build-Depends: debhelper-compat (= 13) + +Package: mesa-hybrid +Section: libs +Architecture: any + ${shlibs:Depends}, + ${misc:Depends}, + libd3dadapter9-mesa, + libegl-mesa0, + libegl1-mesa-dev, + libegl1-mesa, + libgbm-dev, + libgbm1, + libgl1-mesa-dri, + libgl1-mesa-glx, + libglapi-mesa, + libgles2-mesa, + libglx-mesa0, + libosmesa6, + libxatracker2, + mesa-common-dev, + mesa-va-drivers, + mesa-vdpau-drivers, + mesa-vulkan-drivers-git, +Pre-Depends: ${misc:Pre-Depends} +Conflicts: mesa-stable, mesa-git, libmesa-stable, libmesa-git +Replaces: mesa-stable, mesa-git, libmesa-stable, libmesa-git +Provides: mesa-stable, mesa-git, libmesa-stable, libmesa-git +Multi-Arch: same +Description: a meta package to install the latest stable version of mesa, except with the latest git vulkan drivers. + +Package: mesa-custom +Section: libs +Architecture: any + ${shlibs:Depends}, + ${misc:Depends}, + libd3dadapter9-mesa, + libegl-mesa0, + libegl1-mesa-dev, + libegl1-mesa, + libgbm-dev, + libgbm1, + libgl1-mesa-dri, + libgl1-mesa-glx,the latest stable version of mesa, except with the latest git vulkan driver + libglapi-mesa, + libgles2-mesa, + libglx-mesa0, + libosmesa6, + libxatracker2, + mesa-common-dev, + mesa-va-drivers, + mesa-vdpau-drivers, + mesa-vulkan-drivers, +Pre-Depends: ${misc:Pre-Depends} +Conflicts: mesa-stable, mesa-git, mesa-pika, libmesa-stable, libmesa-git, libmesa-pika +Replaces: mesa-stable, mesa-git, mesa-pika, libmesa-stable, libmesa-git, libmesa-pika +Multi-Arch: same +Description: a meta package to install custom mesa drivers from the likes of oibaf and kisak. diff --git a/mesa-pika/debian/rules b/mesa-pika/debian/rules new file mode 100755 index 0000000..000210b --- /dev/null +++ b/mesa-pika/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh ${@} diff --git a/mesa-pika/debian/source/format b/mesa-pika/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/mesa-pika/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/release.sh b/release.sh new file mode 100755 index 0000000..7a5c9e1 --- /dev/null +++ b/release.sh @@ -0,0 +1,17 @@ +#! /bin/bash +set -e + +# Clone Upstream +cd ./mesa-pika + +# Get build deps +apt-get build-dep ./ -y + +# Build package + +dpkg-buildpackage --no-sign + +# Move the debs to output +cd ../ +mkdir -p ./output +mv ./*.deb ./output/