openrgb/main.sh

55 lines
1002 B
Bash
Raw Normal View History

2023-12-02 13:25:16 +01:00
#! /bin/bash
2024-07-28 16:42:50 +03:00
set -e
2024-07-28 16:46:22 +03:00
VERSION="0.9"
2024-07-28 16:42:50 +03:00
source ./pika-build-config.sh
echo "$PIKA_BUILD_ARCH" > pika-build-arch
2023-12-02 13:25:16 +01:00
# Clone Upstream
2025-02-10 23:20:49 +01:00
git clone --recurse-submodules https://gitlab.com/CalcProgrammer1/OpenRGB ./openrgb
2025-02-10 23:17:26 +01:00
#cp -rvf ./debian ./openrgb/
2024-07-28 16:42:50 +03:00
cd ./openrgb/
2023-12-02 13:25:16 +01:00
2025-02-10 23:23:28 +01:00
apt update && \
apt install -y \
appstream \
build-essential \
debhelper \
dh-dkms \
dkms \
file \
git \
libcurl4-gnutls-dev \
libftdi1-dev \
libglib2.0-dev \
libgtop2-dev \
libhidapi-dev \
libmbedtls-dev \
libopenal-dev \
2025-02-10 23:25:29 +01:00
libsensors-dev \
2025-02-10 23:23:28 +01:00
libusb-1.0-0-dev \
pkgconf \
qtbase5-dev \
qtcreator \
qttools5-dev-tools \
unzip \
wget && \
2023-12-02 13:25:16 +01:00
# Get build deps
apt-get build-dep ./ -y
2025-02-10 23:23:28 +01:00
2023-12-02 13:25:16 +01:00
# Build package
2025-02-10 23:17:26 +01:00
./scripts/build-package-files.sh debian/changelog
dpkg-architecture -l
dpkg-buildpackage -us -B
2023-12-02 13:25:16 +01:00
# Move the debs to output
cd ../
mkdir -p ./output
mv ./*.deb ./output/