Verified Commit a2e0b3f4 authored by CompileNix's avatar CompileNix
Browse files

initial

parents
FROM fedora:33
RUN set -ex \
&& dnf update --refresh --assumeyes \
&& dnf install --assumeyes https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm \
&& dnf install --assumeyes dnf-plugins-core util-linux-user findutils which python3 python git zsh redhat-lsb-core neovim tmux python3-pip langpacks-de langpacks-en glibc-langpack-en glibc-langpack-de make gcc-c++ gcc cmake alsa-lib-devel cmake cups-devel dbus-devel dbus-glib-devel faac faac-devel faad2-devel ffmpeg-devel gcc gcc-c++ glib2-devel gsm-devel libjpeg-devel libusb-devel libuuid-devel libX11-devel libXcursor-devel libXdamage-devel libXext-devel libXi-devel libXinerama-devel libxkbfile-devel libXrandr-devel libXv-devel ninja-build openssl-devel pulseaudio-libs-devel systemd-devel wayland-devel wayland-protocols-devel \
&& dnf builddep --assumeyes freerdp sway \
&& curl https://git.compilenix.org/CompileNix/server-dotfiles/-/raw/master/install.sh | bash \
&& dnf autoremove \
&& dnf clean all
COPY build.sh /bin/
CMD ["/bin/build.sh"]
The MIT License (MIT)
Copyright (c) 2021 CompileNix
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.
#!/bin/bash
set -ex
sudo chmod 0777 /dist
cd /dist
if [ -d FreeRDP ]
then
echo "git repo already exists"
cd FreeRDP
git reset --hard
git pull --all
else
git clone https://github.com/FreeRDP/FreeRDP.git
cd FreeRDP
fi
sed -ri 's/FIND_PACKAGE_HANDLE_STANDARD_ARGS\(WAYLAND/FIND_PACKAGE_HANDLE_STANDARD_ARGS(Wayland/g' cmake/FindWayland.cmake
sed -ri '/include\(FindPkgConfig\)/d' cmake/FindWayland.cmake
cmake -GNinja -DCHANNEL_URBDRC=ON -DWITH_DSP_FFMPEG=ON -DWITH_CUPS=ON -DWITH_PULSE=ON -DWITH_FAAC=ON -DWITH_FAAD2=ON -DWITH_GSM=ON -DBUILD_SHARED_LIBS=OFF -DWITH_WAYLAND=ON -DWITH_JPEG=ON .
sed -i 's/-Wall /-Wall -O3 /g' buildflags.h
cmake --build .
cmake --build . --target package
mv -v /dist/FreeRDP/freerdp-*.zip /dist
chmod -v 0666 /dist/*.zip
# Build FreeRDP
```sh
git clone https://git.compilenix.org/CompileNix/build-freerdp.git
cd build-freerdp
docker build -t build-freerdp:fedora-33 .
docker run --rm -it -v $(pwd)/dist:/dist build-freerdp:fedora-33
ls -la "dist/*.zip"
```
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment