-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debian package building #105
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
1fd2dc1
Fix up debian dependencies, move icon file
ervanalb e0975bb
Allow debian.sh to take in additional arguments for key and version
ervanalb 9612c3c
Add MIT license
ervanalb 71a4b79
Upgrade Ubuntu on Travis to Bionic
ervanalb 52aca98
Merge branch 'migrate-travis' into debian-package
ervanalb 89b8aac
Tell Travis to build .deb file
ervanalb 6de029b
remove 'brew install cmake' in OSX
ervanalb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash -ex | ||
|
||
if [[ $TRAVIS_OS_NAME == 'osx' ]] | ||
then | ||
make bundle | ||
elif [[ $TRAVIS_OS_NAME == 'linux' ]] | ||
then | ||
if [[ -z "$TRAVIS_TAG" ]] | ||
then | ||
VERSION="0~dev1" | ||
else | ||
VERSION="$TRAVIS_TAG" | ||
fi | ||
|
||
deploy/debian.sh . deploy/build "$VERSION" 1 | ||
|
||
(cd build && make bundle) | ||
(cd build && make doxygen-doc) | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
#!/bin/bash -x | ||
#!/bin/bash -ex | ||
|
||
if [[ $TRAVIS_OS_NAME == 'osx' ]] | ||
then | ||
echo "osx before_install" | ||
elif [[ $TRAVIS_OS_NAME == 'linux' ]] | ||
then | ||
sudo apt-add-repository -y ppa:ubuntu-toolchain-r/test | ||
sudo apt-add-repository -y ppa:beineri/opt-qt591-trusty | ||
sudo add-apt-repository -y ppa:mc3man/testing6 | ||
sudo apt-get -qy update | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
if [ -z "$1" ]; then | ||
echo "You must specify the GIT root directory as the first argument" >&2 | ||
exit 1 | ||
fi | ||
|
||
if [ -z "$2" ]; then | ||
echo "You must specify the build directory as the second argument" >&2 | ||
exit 1 | ||
fi | ||
|
||
if [ -e "$2" ]; then | ||
echo "Build directory must not exist (it will be created)" >&2 | ||
exit 1 | ||
fi | ||
|
||
if [ -z "$3" ]; then | ||
echo "You must specify an upstream version (e.g. 0.6.1) as the third argument" >&2 | ||
exit 1 | ||
fi | ||
|
||
if [ -z "$4" ]; then | ||
echo "You must specify a packaging version (e.g. 1) as the fourth argument" >&2 | ||
exit 1 | ||
fi | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 4 or 5 arguments is OK |
||
|
||
mkdir -p "$2" | ||
|
||
SOURCE_DIR=$(readlink -e "$1") | ||
BUILD_DIR=$(readlink -e "$2") | ||
UPSTREAM_VERSION=$3 | ||
PKG_VERSION=$4 | ||
SIGNING_KEY=$5 | ||
|
||
echo "Source dir: $SOURCE_DIR" | ||
echo "Build dir: $BUILD_DIR" | ||
echo "Upstream version: $UPSTREAM_VERSION" | ||
echo "Packaging version: $PKG_VERSION" | ||
echo "Signing key: $SIGNING_KEY" | ||
|
||
set -x | ||
|
||
git -C "$SOURCE_DIR" archive HEAD -o "$BUILD_DIR/radiance.tar.gz" | ||
git -C "$SOURCE_DIR/BTrack" archive HEAD -o "$BUILD_DIR/btrack.tar.gz" | ||
mkdir -p "$BUILD_DIR/radiance_$UPSTREAM_VERSION" | ||
tar -C "$BUILD_DIR/radiance_$UPSTREAM_VERSION" -xf "$BUILD_DIR/radiance.tar.gz" | ||
tar -C "$BUILD_DIR/radiance_$UPSTREAM_VERSION/BTrack" -xf "$BUILD_DIR/btrack.tar.gz" | ||
tar -C "$BUILD_DIR" -zcf "$BUILD_DIR/radiance_$UPSTREAM_VERSION.orig.tar.gz" "radiance_$UPSTREAM_VERSION" | ||
rm "$BUILD_DIR/radiance.tar.gz" "$BUILD_DIR/btrack.tar.gz" | ||
cp -r "$SOURCE_DIR/deploy/debian" "$BUILD_DIR/radiance_$UPSTREAM_VERSION/debian" | ||
cat <<EOF >"$BUILD_DIR/radiance_$UPSTREAM_VERSION/debian/changelog" | ||
radiance ($UPSTREAM_VERSION-$PKG_VERSION) unstable; urgency=medium | ||
|
||
* Automatically packaged for Debian | ||
|
||
-- Eric Van Albert <eric@van.al> $(date -R) | ||
EOF | ||
|
||
if [ -z "$SIGNING_KEY" ]; then | ||
KEYOPTS="-us -uc" | ||
else | ||
KEYOPTS="-k$SIGNING_KEY" | ||
fi | ||
|
||
(cd "$BUILD_DIR/radiance_$UPSTREAM_VERSION" && debuild -i $KEYOPTS -S) | ||
(cd "$BUILD_DIR/radiance_$UPSTREAM_VERSION" && debuild -i $KEYOPTS -b) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Source: radiance | ||
Section: video | ||
Priority: optional | ||
Maintainer: Eric Van Albert <eric@van.al> | ||
Build-depends: debhelper (>= 9), cmake, qtbase5-dev, qtdeclarative5-dev, | ||
qtquickcontrols2-5-dev, libfftw3-dev, libsamplerate0-dev, portaudio19-dev, libmpv-dev, librtmidi-dev | ||
Standards-version: 4.1.14 | ||
Homepage: https://radiance.video | ||
|
||
Package: radiance | ||
Architecture: any | ||
Depends: libqt5core5a, libqt5qml5, libqt5quick5, | ||
libfftw3-3, libsamplerate0, libportaudio2, libmpv1, librtmidi4, | ||
libopengl0, qtdeclarative5-models-plugin, qml-module-qt-labs-folderlistmodel, | ||
qml-module-qtquick-controls, qml-module-qtquick-controls2, qml-module-qtquick-layouts, | ||
${shlibs:Depends}, ${misc:Depends} | ||
Description: video art software designed for live performance | ||
Radiance is video art software for VJs. It supports beat detection, | ||
animated GIFs, YouTube videos, and OpenGL shader effects. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ | ||
Upstream-Name: Radiance | ||
Source: https://github.com/zbanks/radiance/ | ||
Files: * | ||
Copyright: 2019 Zach Banks <zjbanks@gmail.com> | ||
2019 Eric Van Albert <eric@van.al> | ||
License: MIT | ||
Permission is hereby granted, free of charge, to any person obtaining a | ||
copy of this software and associated documentation files (the "Software"), to | ||
deal in the Software without restriction, including without limitation the | ||
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or | ||
sell copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
deploy/radiance.desktop usr/share/applications | ||
deploy/radiance.png usr/share/pixmaps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/make -f | ||
|
||
%: | ||
dh $@ | ||
|
||
override_dh_auto_configure: | ||
dh_auto_configure -- -DRADIANCE_SYSTEM_RESOURCES=/usr/share/radiance/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be pushed into the
yml
?on.condition: "$TRAVIS_OS_NAME == linux"
or does that not workThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was the pattern already in most of the travis scripts, I don't really feel like changing it. TBH I don't understand travis's yml.