55 lines
1002 B
Bash
Executable File
55 lines
1002 B
Bash
Executable File
#! /bin/bash
|
|
|
|
set -e
|
|
|
|
VERSION="0.9"
|
|
|
|
source ./pika-build-config.sh
|
|
|
|
echo "$PIKA_BUILD_ARCH" > pika-build-arch
|
|
|
|
# Clone Upstream
|
|
git clone --recurse-submodules https://gitlab.com/CalcProgrammer1/OpenRGB ./openrgb
|
|
#cp -rvf ./debian ./openrgb/
|
|
cd ./openrgb/
|
|
|
|
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 \
|
|
libsensors-dev \
|
|
libusb-1.0-0-dev \
|
|
pkgconf \
|
|
qtbase5-dev \
|
|
qtcreator \
|
|
qttools5-dev-tools \
|
|
unzip \
|
|
wget && \
|
|
|
|
|
|
# Get build deps
|
|
apt-get build-dep ./ -y
|
|
|
|
|
|
# Build package
|
|
./scripts/build-package-files.sh debian/changelog
|
|
dpkg-architecture -l
|
|
dpkg-buildpackage -us -B
|
|
|
|
# Move the debs to output
|
|
cd ../
|
|
mkdir -p ./output
|
|
mv ./*.deb ./output/
|