From b92fbe9139a46e5469856129fd1f7bf8eadab059 Mon Sep 17 00:00:00 2001 From: Ohio2 Date: Fri, 27 Aug 2021 16:39:18 +0200 Subject: [PATCH 1/2] add wayland --- curses-lib/build | 80 +++++++++++++++++------------------ evdev/build | 11 +++++ evdev/package | 5 +++ foot/build | 19 +++++++++ foot/package | 5 +++ grim/build | 11 +++++ grim/package | 5 +++ libinput/build | 25 +++++++++++ libinput/package | 5 +++ libpciaccess/build | 9 ++++ libpciaccess/package | 5 +++ libxkbcommon/build | 18 ++++++++ libxkbcommon/package | 5 +++ sway/build | 47 ++++++++++++++++++++ sway/package | 5 +++ sway/postdeploy | 12 ++++++ ufetch/payload/usr/bin/ufetch | 2 +- wayland-protocols/build | 9 ++++ wayland-protocols/package | 5 +++ wayland/build | 13 ++++++ wayland/package | 5 +++ xkeyboard-config/build | 8 ++++ xkeyboard-config/package | 5 +++ 23 files changed, 273 insertions(+), 41 deletions(-) create mode 100755 evdev/build create mode 100755 evdev/package create mode 100755 foot/build create mode 100755 foot/package create mode 100755 grim/build create mode 100755 grim/package create mode 100755 libinput/build create mode 100755 libinput/package create mode 100755 libpciaccess/build create mode 100755 libpciaccess/package create mode 100755 libxkbcommon/build create mode 100755 libxkbcommon/package create mode 100755 sway/build create mode 100755 sway/package create mode 100755 sway/postdeploy create mode 100755 wayland-protocols/build create mode 100755 wayland-protocols/package create mode 100755 wayland/build create mode 100755 wayland/package create mode 100755 xkeyboard-config/build create mode 100755 xkeyboard-config/package diff --git a/curses-lib/build b/curses-lib/build index 295ac0c..34cc661 100755 --- a/curses-lib/build +++ b/curses-lib/build @@ -12,44 +12,44 @@ popd ./configure --prefix=/ --build=$(./config.guess) --mandir=//share/man --with-manpage-format=normal --with-shared --without-debug --without-ada --without-normal --enable-widec --with-pkg-config-libdir=//lib/ncurses//lib/pkgconfig make make DESTDIR="$1" install -ln -s $1//lib/ncurses/bin/captoinfo $1//bin/ -ln -s $1//lib/ncurses/bin/clear $1//bin/ -ln -s $1//lib/ncurses/bin/infocmp $1//bin/ -ln -s $1//lib/ncurses/bin/infotocap $1//bin/ -ln -s $1//lib/ncurses/bin/ncurses6-config $1//bin/ -ln -s $1//lib/ncurses/bin/reset $1//bin/ -ln -s $1//lib/ncurses/bin/tabs $1//bin/ -ln -s $1//lib/ncurses/bin/tic $1//bin/ -ln -s $1//lib/ncurses/bin/toe $1//bin/ -ln -s $1//lib/ncurses/bin/tput $1//bin/ -ln -s $1//lib/ncurses/bin/tset $1//bin/ -ln -s $1//lib/ncurses/include/ncurses $1//include -ln -s $1//lib/ncurses/lib/libform.a $1//lib/ -ln -s $1//lib/ncurses/lib/libform_g.a $1//lib/ -ln -s $1//lib/ncurses/lib/libform.so $1//lib/ -ln -s $1//lib/ncurses/lib/libform.so.6 $1//lib/ -ln -s $1//lib/ncurses/lib/libform.so.6.1 $1//lib/ -ln -s $1//lib/ncurses/lib/libmenu.a $1//lib/ -ln -s $1//lib/ncurses/lib/libmenu_g.a $1//lib/ -ln -s $1//lib/ncurses/lib/libmenu.so $1//lib/ -ln -s $1//lib/ncurses/lib/libmenu.so.6 $1//lib/ -ln -s $1//lib/ncurses/lib/libmenu.so.6.1 $1//lib/ -ln -s $1//lib/ncurses/lib/libncurses++.a $1//lib/ -ln -s $1//lib/ncurses/lib/libncurses.a $1//lib/ -ln -s $1//lib/ncurses/lib/libncurses++_g.a $1//lib/ -ln -s $1//lib/ncurses/lib/libncurses_g.a $1//lib/ -ln -s $1//lib/ncurses/lib/libncurses.so $1//lib/ -ln -s $1//lib/ncurses/lib/libncurses.so.6 $1//lib/ -ln -s $1//lib/ncurses/lib/libncurses.so.6.1 $1//lib/ -ln -s $1//lib/ncurses/lib/libpanel.a $1//lib/ -ln -s $1//lib/ncurses/lib/libpanel_g.a $1//lib/ -ln -s $1//lib/ncurses/lib/libpanel.so $1//lib/ -ln -s $1//lib/ncurses/lib/libpanel.so.6 $1//lib/ -ln -s $1//lib/ncurses/lib/libpanel.so.6.1 $1//lib/ -ln -s $1//lib/ncurses/lib/terminfo $1//lib/ -ln -s $1//lib/ncurses/lib/pkgconfig/form.pc $1//lib/pkgconfig/ -ln -s $1//lib/ncurses/lib/pkgconfig/menu.pc $1//lib/pkgconfig/ -ln -s $1//lib/ncurses/lib/pkgconfig/ncurses++.pc $1//lib/pkgconfig/ -ln -s $1//lib/ncurses/lib/pkgconfig/ncurses.pc $1//lib/pkgconfig/ -ln -s $1//lib/ncurses/lib/pkgconfig/panel.pc $1//lib/pkgconfig/ +ln -s lib/ncurses/bin/captoinfo bin/ +ln -s lib/ncurses/bin/clear $1//bin +ln -s lib/ncurses/bin/infocmp $1//bin/ +ln -s lib/ncurses/bin/infotocap $1//bin/ +ln -s lib/ncurses/bin/ncurses6-config $1//bin/ +ln -s lib/ncurses/bin/reset $1//bin/ +ln -s lib/ncurses/bin/tabs $1//bin/ +ln -s lib/ncurses/bin/tic $1//bin/ +ln -s lib/ncurses/bin/toe $1//bin/ +ln -s lib/ncurses/bin/tput $1//bin/ +ln -s lib/ncurses/bin/tset $1//bin/ +ln -s lib/ncurses/include/ncurses $1//include +ln -s lib/ncurses/lib/libform.a $1//lib/ +ln -s lib/ncurses/lib/libform_g.a $1//lib/ +ln -s lib/ncurses/lib/libform.so $1//lib/ +ln -s lib/ncurses/lib/libform.so.6 $1//lib/ +ln -s lib/ncurses/lib/libform.so.6.1 $1//lib/ +ln -s lib/ncurses/lib/libmenu.a $1//lib/ +ln -s lib/ncurses/lib/libmenu_g.a $1//lib/ +ln -s lib/ncurses/lib/libmenu.so $1//lib/ +ln -s lib/ncurses/lib/libmenu.so.6 $1//lib/ +ln -s lib/ncurses/lib/libmenu.so.6.1 $1//lib/ +ln -s lib/ncurses/lib/libncurses++.a $1//lib/ +ln -s lib/ncurses/lib/libncurses.a $1//lib/ +ln -s lib/ncurses/lib/libncurses++_g.a $1//lib/ +ln -s lib/ncurses/lib/libncurses_g.a $1//lib/ +ln -s lib/ncurses/lib/libncurses.so $1//lib/ +ln -s lib/ncurses/lib/libncurses.so.6 $1//lib/ +ln -s lib/ncurses/lib/libncurses.so.6.1 $1//lib/ +ln -s lib/ncurses/lib/libpanel.a $1//lib/ +ln -s lib/ncurses/lib/libpanel_g.a $1//lib/ +ln -s lib/ncurses/lib/libpanel.so $1//lib/ +ln -s lib/ncurses/lib/libpanel.so.6 $1//lib/ +ln -s lib/ncurses/lib/libpanel.so.6.1 $1//lib/ +ln -s lib/ncurses/lib/terminfo $1//lib/ +ln -s lib/ncurses/lib/pkgconfig/form.pc $1//lib/pkgconfig/ +ln -s lib/ncurses/lib/pkgconfig/menu.pc $1//lib/pkgconfig/ +ln -s lib/ncurses/lib/pkgconfig/ncurses++.pc $1//lib/pkgconfig/ +ln -s lib/ncurses/lib/pkgconfig/ncurses.pc $1//lib/pkgconfig/ +ln -s lib/ncurses/lib/pkgconfig/panel.pc $1//lib/pkgconfig/ echo "INPUT(-lncursesw)" > $1//lib/libncurses.so diff --git a/evdev/build b/evdev/build new file mode 100755 index 0000000..386dfc7 --- /dev/null +++ b/evdev/build @@ -0,0 +1,11 @@ +wget https://freedesktop.org/software/libevdev/libevdev-1.11.0.tar.xz +tar -xf libevdev-1.11.0.tar.xz +cd libevdev-1.11.0 + +./configure \ + --prefix=/usr \ + --disable-shared \ + --disable-gcov + +make +make DESTDIR="$1" install diff --git a/evdev/package b/evdev/package new file mode 100755 index 0000000..228f8a7 --- /dev/null +++ b/evdev/package @@ -0,0 +1,5 @@ +pkg_config_deploy=true +pkg_config_ver="1.11.0" +pkg_config_name="evdev" +pkg_config_makedepends="" +pkg_config_depends="" diff --git a/foot/build b/foot/build new file mode 100755 index 0000000..4cdedc1 --- /dev/null +++ b/foot/build @@ -0,0 +1,19 @@ +wget https://codeberg.org/dnkl/foot/archive/8bdd019227225c94fa6e282d941ffbc09fd7a81c.tar.gz +tar -xf 8bdd019227225c94fa6e282d941ffbc09fd7a81c.tar.gz +cd 8bdd019227225c94fa6e282d941ffbc09fd7a81c + +meson \ + --prefix=/usr \ + --buildtype=release \ + --force-fallback-for=fcft,tllist \ + -Dime=false \ + . output + +ninja -C output +ninja -C output install + +rm -rf \ + "$1/usr/share/doc" \ + "$1/usr/share/zsh" \ + "$1/usr/share/fish" \ + "$1/usr/share/bash-completion" diff --git a/foot/package b/foot/package new file mode 100755 index 0000000..5a04771 --- /dev/null +++ b/foot/package @@ -0,0 +1,5 @@ +pkg_config_deploy=true +pkg_config_ver="8bdd019227225c94fa6e282d941ffbc09fd7a81c" +pkg_config_name="foot" +pkg_config_makedepends="meson ncurses pkg-config-fd python wayland" +pkg_config_depends="fontconfig libxkb wayland" diff --git a/grim/build b/grim/build new file mode 100755 index 0000000..83ec4ee --- /dev/null +++ b/grim/build @@ -0,0 +1,11 @@ +wget https://github.com/emersion/grim/releases/download/VERSION/grim-1.3.2.tar.gz +tar -xf grim-1.3.2 +cd grim-1.3.2 + +meson \ + --prefix=/usr \ + -Djpeg=disabled \ + . build + +ninja -C build +ninja -C build install diff --git a/grim/package b/grim/package new file mode 100755 index 0000000..61b354f --- /dev/null +++ b/grim/package @@ -0,0 +1,5 @@ +pkg_config_deploy=true +pkg_config_ver="1.3.2" +pkg_config_name="grim" +pkg_config_makedepends="pkg-config-fd wayland-protocls" +pkg_config_depends="cairo wayland" diff --git a/libinput/build b/libinput/build new file mode 100755 index 0000000..9236b3e --- /dev/null +++ b/libinput/build @@ -0,0 +1,25 @@ +wget https://github.com/wayland-project/libinput/archive/1.18.1.tar.gz +tar -xf 1.18.1 +cd 1.18.1 + +export CFLAGS="-Wno-unused-command-line-argument $CFLAGS" + +export PKG_CONFIG_PATH="$PWD/usr/lib/pkgconfig" +export CFLAGS="$CFLAGS -I$PWD/usr/include -L$PWD/usr/lib" +export CFLAGS="$CFLAGS -I$PWD/usr/include/libevdev-1.0" +export DESTDIR="$1" + +meson \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --libexecdir=/usr/lib \ + -Ddefault_library=both \ + -Ddebug-gui=false \ + -Ddocumentation=false \ + -Dtests=false \ + -Dlibwacom=false \ + . output + +ninja -C output +ninja -C output install diff --git a/libinput/package b/libinput/package new file mode 100755 index 0000000..22e1c29 --- /dev/null +++ b/libinput/package @@ -0,0 +1,5 @@ +pkg_config_deploy=true +pkg_config_ver="1.18.1" +pkg_config_name="libinput" +pkg_config_makedepends="linux-headers udev meson pkg-config-fd mtdev" +pkg_config_depends="" diff --git a/libpciaccess/build b/libpciaccess/build new file mode 100755 index 0000000..dc4e2a5 --- /dev/null +++ b/libpciaccess/build @@ -0,0 +1,9 @@ +wget https://x.org/releases/individual/lib/libpciaccess-0.16.tar.bz2 +tar -xf libpciaccess-0.16.tar.bz2 +cd libpciaccess-0.16 + +./configure \ + --prefix=/usr + +make +make DESTDIR="$1" install diff --git a/libpciaccess/package b/libpciaccess/package new file mode 100755 index 0000000..6102228 --- /dev/null +++ b/libpciaccess/package @@ -0,0 +1,5 @@ +pkg_config_deploy=true +pkg_config_ver="0.16" +pkg_config_name="libpciaccess" +pkg_config_makedepends="" +pkg_config_depends="" diff --git a/libxkbcommon/build b/libxkbcommon/build new file mode 100755 index 0000000..3b61b2c --- /dev/null +++ b/libxkbcommon/build @@ -0,0 +1,18 @@ +wget https://xkbcommon.org/download/libxkbcommon-1.3.0.tar.xz +tar -xf libxkbcommon-1.3.0.tar.xz +cd lixkbcommon-1.3.0 +export DESTDIR="$1" + +meson \ + --prefix=/usr \ + --libexecdir=/usr/lib \ + -Ddefault_library=both \ + -Denable-docs=false \ + -Denable-wayland=true \ + -Denable-x11=false \ + -Denable-xkbregistry=false \ + . output + +ninja -C output +ninja -C output install + diff --git a/libxkbcommon/package b/libxkbcommon/package new file mode 100755 index 0000000..25eb8f6 --- /dev/null +++ b/libxkbcommon/package @@ -0,0 +1,5 @@ +pkg_config_deploy=true +pkg_config_ver="1.3.0" +pkg_config_name="libxkbcommon" +pkg_config_makedepends="bison meson pkg-config-fd wayland-protocols" +pkg_config_depends="wayland xkeyboard-config" diff --git a/sway/build b/sway/build new file mode 100755 index 0000000..f7c4a80 --- /dev/null +++ b/sway/build @@ -0,0 +1,47 @@ +wget https://github.com/swaywm/sway/archive/6ffa4b1f7000cd90d63213820039ee432803e66a.tar.gz +wget https://github.com/swaywm/wlroots/archive/e5063ef3a3b12d4384595cb0554cf1f84d5be6f8.tar.gz +wget https://raw.githubusercontent.com/kisslinux/repo/master/wayland/sway-no-seat/patches/no-evdev.patch +wget https://raw.githubusercontent.com/kisslinux/repo/master/wayland/sway-no-seat/patches/sway-static.patch +tar -xf 6ffa4b1f7000cd90d63213820039ee432803e66a.tar.gz +cd 6ffa4b1f7000cd90d63213820039ee432803e66a + +mkdir -p subprojects/wlroots +tar -xf subprojects/wlroots e5063ef3a3b12d4384595cb0554cf1f84d5be6f8.tar.gz + + +patch -p1 < sway-static.patch +patch -p1 < no-evdev.patch + +# Build fails in subprojects/seatd with clang +# due to -Werror -> -Wsign-compare. +export CFLAGS="-Wno-error $CFLAGS" + +# Default background color. +sed 's/0.25f, 0.25f, 0.25f/0.929, 0.870, 0.678/' \ + sway/desktop/render.c > _ +mv -f _ sway/desktop/render.c + +meson \ + --prefix=/usr \ + -Dexamples=false \ + -Dxwayland=disabled \ + -Dx11-backend=disabled \ + -Dxcb-errors=disabled \ + -Dxcb-icccm=disabled \ + -Dwlroots:examples=false \ + -Dwlroots:xcb-errors=disabled \ + -Dwlroots:x11-backend=disabled \ + -Dwlroots:default_library=static \ + -Dseatd:builtin=enabled \ + -Dseatd:default_library=static \ + --force-fallback-for=wlroots,seatd \ + . build + +ninja -C build +meson install -C build --skip-subprojects + +rm -rf \ + "$1/usr/share/fish" \ + "$1/usr/share/bash-completion" \ + "$1/usr/share/backgrounds" \ + "$1/usr/share/zsh" diff --git a/sway/package b/sway/package new file mode 100755 index 0000000..3f871c7 --- /dev/null +++ b/sway/package @@ -0,0 +1,5 @@ +pkg_config_deploy=true +pkg_config_ver="6ffa4b1f7000cd90d63213820039ee432803e66a" +pkg_config_name="sway" +pkg_config_makedepends="flex meson pkg-config-fd wayland-protocols linux-headers" +pkg_config_depends="cairo wayland pixman pcre pango mesa libinput" diff --git a/sway/postdeploy b/sway/postdeploy new file mode 100755 index 0000000..a1cdd33 --- /dev/null +++ b/sway/postdeploy @@ -0,0 +1,12 @@ +chown root:input "$KISS_ROOT/usr/bin/sway" +chmod g+s "$KISS_ROOT/usr/bin/sway" + +cat < Date: Fri, 27 Aug 2021 16:55:20 +0200 Subject: [PATCH 2/2] move the config to sample --- alnux/payload/etc/al/{ => sample}/config | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename alnux/payload/etc/al/{ => sample}/config (100%) diff --git a/alnux/payload/etc/al/config b/alnux/payload/etc/al/sample/config similarity index 100% rename from alnux/payload/etc/al/config rename to alnux/payload/etc/al/sample/config