Browse Source

Add script for generating carla+obs packages

Signed-off-by: falkTX <falktx@falktx.com>
master
falkTX 1 year ago
parent
commit
d52fb953f4
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 32 additions and 0 deletions
  1. +6
    -0
      sources/.gitignore
  2. +26
    -0
      sources/apps/obs-studio/obs-ppa-regen.sh

+ 6
- 0
sources/.gitignore View File

@@ -50,6 +50,12 @@ include-binaries
!/apps/*/debian/*.links
!/apps/*/debian/rules

# https://launchpad.net/~falktx/+archive/ubuntu/carla+obs/
!/apps/obs-studio/*
/apps/obs-studio/*.xz
/apps/obs-studio/*.gz
/apps/obs-studio/obs-studio

/plugins/*/*
!/plugins/*/debian
/plugins/*/debian/*


+ 26
- 0
sources/apps/obs-studio/obs-ppa-regen.sh View File

@@ -0,0 +1,26 @@
#!/bin/bash

set -e

PPA_URL="https://launchpad.net/~obsproject/+archive/ubuntu/obs-studio"
SUFFIX="0obsproject1"
VERSION="29.1.2"
DISTS=("focal" "jammy" "kinetic" "lunar")

wget -c "${PPA_URL}/+files/obs-studio_29.1.2.orig.tar.gz"

for d in ${DISTS[@]}; do
wget -c "${PPA_URL}/+sourcefiles/obs-studio/${VERSION}-${SUFFIX}~${d}/obs-studio_${VERSION}-${SUFFIX}~${d}.debian.tar.xz"
rm -rf obs-studio
tar xf obs-studio_${VERSION}.orig.tar.gz
tar xf obs-studio_${VERSION}-${SUFFIX}~${d}.debian.tar.xz -C obs-studio
sed -i "s/Build-Depends:/Build-Depends: carla, carla-dev,/" obs-studio/debian/control
mkdir -p obs-studio/debian/patches
cp *.patch obs-studio/debian/patches
echo 1000_carla-plugin.patch >> obs-studio/debian/patches/series
echo 1001_qt5-compat.patch >> obs-studio/debian/patches/series
pushd obs-studio
env DEBEMAIL="falktx@falktx.com" dch -v "${VERSION}-${SUFFIX}+carla3~${d}" -D "${d}" --force-distribution "Add carla plugin host module"
debuild --no-lintian -S -sa -d
popd
done

Loading…
Cancel
Save