-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add commands to build omxiv and udevil
- Loading branch information
1 parent
f0a5edf
commit 00650eb
Showing
6 changed files
with
84 additions
and
5 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "omxiv"] | ||
path = omxiv | ||
url = https://github.com/HaarigerHarald/omxiv.git |
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,20 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
if ! grep deb-src /etc/apt/sources.list; then | ||
cat <<EOF | sudo tee -a /etc/apt/sources.list | ||
deb-src http://deb.debian.org/debian buster main | ||
deb-src http://security.debian.org/debian-security buster/updates main | ||
deb-src http://deb.debian.org/debian buster-updates main | ||
EOF | ||
else | ||
sudo sed /etc/apt/sources.list -i -e "s/#deb-src/deb-src/" | ||
fi | ||
|
||
cd omxiv | ||
sudo apt-get install -y checkinstall libjpeg8-dev libpng12-dev | ||
make | ||
make ilclient | ||
checkinstall -D make install | ||
mv -t ../dist omxiv_*.deb |
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,34 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
if ! grep deb-src /etc/apt/sources.list; then | ||
cat <<EOF | sudo tee -a /etc/apt/sources.list | ||
deb-src http://deb.debian.org/debian buster main | ||
deb-src http://security.debian.org/debian-security buster/updates main | ||
deb-src http://deb.debian.org/debian buster-updates main | ||
EOF | ||
else | ||
sudo sed /etc/apt/sources.list -i -e "s/#deb-src/deb-src/" | ||
fi | ||
|
||
version=0.4.4+ | ||
|
||
dir=$(dirname "$(readlink -f "$0")") | ||
tmp_dir=$(mktemp -d --suffix "-udevil") | ||
mkdir -p "$tmp_dir" | ||
pushd "$tmp_dir" > /dev/null | ||
|
||
set -x | ||
sudo apt-get update | ||
sudo apt-get build-dep -y udevil | ||
wget -O udevil.tar.gz https://github.com/IgnorantGuru/udevil/tarball/next | ||
tar xzf udevil.tar.gz | ||
mv IgnorantGuru-udevil-* "udevil-$version" | ||
cd "udevil-$version" | ||
ln -s distros/debian debian | ||
dpkg-buildpackage -us -uc -nc | ||
mv -t "$dir/dist" ../udevil_*.deb | ||
|
||
popd > /dev/null | ||
rm -r "$tmp_dir" |
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