Created
October 27, 2019 23:30
-
-
Save sheenobu/bfa8f758878184a4c5b72066a938bd8f to your computer and use it in GitHub Desktop.
sway building in mock environment in fc31
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
#!/usr/bin/env bash | |
echo "include('/etc/mock/templates/fedora-31.tpl') | |
config_opts['target_arch'] = 'x86_64' | |
config_opts['legal_host_arches'] = ('x86_64',) | |
config_opts['plugin_conf']['bind_mount_enable'] = True | |
config_opts['plugin_conf']['bind_mount_opts']['dirs'].append(('$PWD/sway-tmp', '/d')) | |
" > swaymock.cfg | |
MOCK="mock -r $PWD/swaymock.cfg --rootdir $PWD/chroot" | |
$MOCK \ | |
-i \ | |
cairo-devel \ | |
pango-devel \ | |
json-c-devel \ | |
meson \ | |
ninja-build \ | |
gcc \ | |
libwayland-server \ | |
libwayland-client \ | |
wayland-devel \ | |
wayland-protocols-devel \ | |
libxkbcommon-devel \ | |
libevdev-devel \ | |
libinput-devel \ | |
mesa-libGLES-devel \ | |
mesa-libgbm-devel \ | |
mesa-libEGL-devel \ | |
libudev-devel | |
git clone https://github.com/swaywm/sway sway-tmp | |
pushd sway-tmp | |
mkdir -p subprojects | |
pushd subprojects | |
echo "[wrap-git] | |
directory = wlroots | |
url = https://github.com/swaywm/wlroots | |
revision = master" > wlroots.wrap | |
git clone https://github.com/swaywm/wlroots | |
popd | |
$MOCK --cwd /d --unpriv --chroot "meson --default-library static --buildtype release build" | |
$MOCK --cwd /d --unpriv --chroot "ninja -C build" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment