Skip to content

Commit

Permalink
add kpipewire, It's a fairly new KDE library
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.code.sf.net/p/rebeccablackos/code@7532 b52b6941-3400-464c-9f42-43200397181c
  • Loading branch information
nerdopolis committed Jun 15, 2022
1 parent 2036952 commit 742b33b
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 0 deletions.
86 changes: 86 additions & 0 deletions rebeccablackos_files/usr/bin/Compile/kpipewire
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
#! /bin/bash
# Copyright (c) 2012 - 2022 nerdopolis (or n3rdopolis) <[email protected]>
#
# This file is part of RebeccaBlackOS.
#
# This program 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 program 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 <http://www.gnu.org/licenses/>.

#Inherit functions and variables from the script in /usr/bin/build_core
. /usr/bin/build_core

#The name of the source code folder that gets created
SOURCENAME=kpipewire

#The URL of the Source code repo
SOURCEURL=https://invent.kde.org/plasma/kpipewire.git

#The Type of repository the source code is on. Either 'GIT', 'SVN', 'BZR', or 'HG'.
REPOSITORYTYPE=GIT

#The revision of the source repo to use. To get the lastest revision for GIT it's 'git:defaultbranch', for SVN it's 'HEAD', for BZR, it's 'last:1', and for HG it's 'default', without the quotes
SOURCEREVISION=git:defaultbranch

#The prefix to compile and install the source code to
INSTALLDIR=/opt

#This variable is not manditory, /usr/bin/build_core sets it by default as 0, so that when it's set to create deb files, it only needs to build them once.
REBUILDNEWREVISION=0

#Specify any custom revisions for git submodules in the format shown below
# SUBMODULEREVISIONS=(examplesubmodule master
# nested/submodule 1.0
# 'submodule with spaces' master
# commitsubmodule 0123456789abcdef )
#
#This is an array where the first element specifies a submodule name, and the second element specifies the revision, the third specifies the name of another submodule, the fourth element specifies its revision and so on.
#If there are spaces in the submodule your are specifing, you will need to enclose the name in single quotes
#This is only applicable to git repositories with submodules

#This gets called by DownloadSource in /usr/bin/build_core. If there are no other commands here, the colon (:) is MANDITORY as a NULL command, otherwise Bash complains of an empty function. These functions are custom commands that need to be done to download source.
function PackageDownloadSource
{
:
}


#This is called by PrepareBuild in /usr/bin/build_core. If there are no other commands here, the colon (:) is MANDITORY as a NULL command, otherwise Bash complains of an empty function. These functions are custom commands that need to be done to prepare the system to build the source
function PackagePrepareBuild()
{
mkdir build
cd build
cmake -Wno-dev .. -DCMAKE_INSTALL_PREFIX=$INSTALLDIR -DCMAKE_PREFIX_PATH=$INSTALLDIR -DCMAKE_BUILD_TYPE=Release #-DLIB_INSTALL_DIR=$INSTALLDIR/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)
}

#This is called by MakeAndInstall in /usr/bin/build_core, when the PWD is in the source tree. The commands should build the source
function PackageCompileSource()
{
cd build
make
}

#This is called by MakeAndInstall in /usr/bin/build_core. This is the routine to install the source. The PWD does not get inherited from PackageCompileSource, so if needed, the PWD needs to be changed here too.
function PackageInstallSource()
{
cd build
make install
}

#This is called by MakeAndInstall in /usr/bin/build_core. If there are no other commands here, the colon (:) is MANDITORY as a NULL command, otherwise Bash complains of an empty function. These commands are custom install commands that are needed for this package that are not performed by the source install operation.
function PackagePostInstall()
{
:
}

#Run the Build and or Download, based on the argument this script was called by. This is decided within /usr/bin/build_core
RunDownloadAndOrBuild
1 change: 1 addition & 0 deletions rebeccablackos_files/usr/bin/compile_all
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,7 @@ CompilePackage packagekit-qt
CompilePackage libqalculate
CompilePackage kdsoap
CompilePackage kwayland-integration
CompilePackage kpipewire
CompilePackage kuserfeedback
CompilePackage kross-interpreters
CompilePackage kwallet-pam
Expand Down

0 comments on commit 742b33b

Please sign in to comment.