diff --git a/.github/workflows/build-debian.yml b/.github/workflows/build-debian.yml new file mode 100644 index 00000000..5e1e1177 --- /dev/null +++ b/.github/workflows/build-debian.yml @@ -0,0 +1,27 @@ +name: debian-build + +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + with: + submodules: 'recursive' + - name: create_tarball + run: | + cd .. + tar --exclude=.git -cvzf obs-scene-switcher_0.1+testonly.orig.tar.gz SceneSwitcher + - name: create_debian_dir + run: | + cp -a CI/linux/debian . + - name: install_dependencies + run: | + sudo apt install cmake debhelper devscripts libcurl4-openssl-dev libobs-dev libxtst-dev qtbase5-dev libxss-dev + ls -l /usr/include/obs/ + - name: build + run: | + debuild --no-lintian --no-sign diff --git a/CI/linux/debian/changelog b/CI/linux/debian/changelog new file mode 100644 index 00000000..b8866e44 --- /dev/null +++ b/CI/linux/debian/changelog @@ -0,0 +1,5 @@ +obs-scene-switcher (0.1+testonly) focal; urgency=medium + + * Initial release (Closes: #123456) + + -- Joao Eriberto Mota Filho Fri, 03 Sep 2021 11:39:52 -0300 diff --git a/CI/linux/debian/control b/CI/linux/debian/control new file mode 100644 index 00000000..c357a29c --- /dev/null +++ b/CI/linux/debian/control @@ -0,0 +1,21 @@ +Source: obs-scene-switcher +Section: video +Priority: optional +Maintainer: Joao Eriberto Mota Filho +Build-Depends: cmake, + debhelper-compat (= 12), + libcurl4-openssl-dev, + libobs-dev, + libxtst-dev, + qtbase5-dev, + libxss-dev +Standards-Version: 4.6.0 +Homepage: https://obsproject.com/forum/resources/advanced-scene-switcher.395/ +Rules-Requires-Root: no + +Package: obs-scene-switcher +Architecture: any +Depends: ${misc:Depends}, ${shlibs:Depends} +Description: automated scene switcher for OBS Studio (plugin) + Advanced Scene Switcher is based on the built in scene switcher. It extends + its functionality by adding several features. diff --git a/CI/linux/debian/copyright b/CI/linux/debian/copyright new file mode 100644 index 00000000..0a694468 --- /dev/null +++ b/CI/linux/debian/copyright @@ -0,0 +1,29 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: obs-advancedsceneswitcher +Upstream-Contact: https://github.com/WarmUpTill/SceneSwitcher/issues +Source: https://github.com/WarmUpTill/SceneSwitcher + +Files: * +Copyright: WarmUpTill +License: GPL-2 + +Files: debian/* +Copyright: 2021 Joao Eriberto Mota Filho +License: GPL-2+ + +License: GPL-2 or GPL-2+ + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + . + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see + . + On Debian systems, the complete text of the GNU General + Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". diff --git a/CI/linux/debian/rules b/CI/linux/debian/rules new file mode 100644 index 00000000..1b8457cf --- /dev/null +++ b/CI/linux/debian/rules @@ -0,0 +1,33 @@ +#!/usr/bin/make -f +#export DH_VERBOSE = 1 + +#export DEB_BUILD_MAINT_OPTIONS = hardening=+all +export QT_SELECT = qt5 + + +%: + dh $@ + + + dh_auto_configure -- -DBUILD_OUT_OF_TREE=1 \ + -DLIBOBS_INCLUDE_DIR=/usr/include/obs \ + -DLIBOBS_LIB=/usr/lib/${DEB_TARGET_GNU_TYPE}/libobs.so \ + -DLIBOBS_FRONTEND_INCLUDE_DIR=/usr/include/obs \ + -DLIBOBS_FRONTEND_API_LIB=/usr/lib/${DEB_TARGET_GNU_TYPE}/libobs-frontend-api.so + +#override_dh_auto_configure: +# dh_auto_configure -- -DBUILD_OUT_OF_TREE=1 \ +# -DLIBOBS_FRONTEND_API_LIB=/usr/lib/x86_64-linux-gnu/libobs-frontend-api.so \ +# -DLIBOBS_FRONTEND_INCLUDE_DIR=/usr/include/obs \ +# -DCMAKE_INSTALL_PREFIX=/usr \ +# -DCMAKE_BUILD_TYPE=None \ +# -DCMAKE_INSTALL_SYSCONFDIR=/etc \ +# -DCMAKE_INSTALL_LOCALSTATEDIR=/var \ +# -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON \ +# -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF \ +# -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON \ +# -DCMAKE_INSTALL_RUNSTATEDIR=/run \ +# -DCMAKE_SKIP_INSTALL_ALL_DEPENDENCY=ON \ +# "-GUnix Makefiles" -DCMAKE_VERBOSE_MAKEFILE=ON \ +# -DCMAKE_INSTALL_LIBDIR=lib/x86_64-linux-gnu .. + diff --git a/CI/linux/debian/source/format b/CI/linux/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/CI/linux/debian/source/format @@ -0,0 +1 @@ +3.0 (native)