1
- # shellcheck disable=SC1090
2
- source <( curl -s https://raw.githubusercontent.com/pytgcalls/build-toolkit/refs/heads/master/build-toolkit.sh)
1
+ source /dev/stdin <<< " $(curl -s https://raw.githubusercontent.com/pytgcalls/build-toolkit/refs/heads/master/build-toolkit.sh)"
3
2
4
- UTIL_MACROS_VERSION=$( get_version " util-macros" )
5
- XTRANS_VERSION=$( get_version " Xtrans" )
6
- XI_VERSION=$( get_version " Xi" )
7
- XORGPROTO_VERSION=$( get_version " xorgproto" )
8
- XCBPROTO_VERSION=$( get_version " xcb" )
3
+ import libraries.properties
9
4
10
- build_and_install " ${FREEDESKTOP_GIT} xorg/util/macros.git" " util-macros-$UTIL_MACROS_VERSION " autogen
11
- build_and_install " ${FREEDESKTOP_GIT} xorg/lib/libxtrans.git" " xtrans-$XTRANS_VERSION " autogen
12
- build_and_install " ${FREEDESKTOP_GIT} xorg/proto/xorgproto.git" " xorgproto-$XORGPROTO_VERSION " autogen
13
- build_and_install " ${FREEDESKTOP_GIT} xorg/proto/xcbproto.git" " xcb-proto-$XCBPROTO_VERSION " autogen
14
- build_and_install " ${FREEDESKTOP_GIT} xorg/lib/libXi.git" " libXi-$XI_VERSION " autogen-static --prefix=/usr
5
+ build_and_install " macros" configure
6
+ build_and_install " libXtrans" configure
7
+ build_and_install " xorgproto" configure
8
+ build_and_install " libXfixes" configure-static
9
+ build_and_install " libXi" configure-static
10
+ build_and_install " xcbproto" configure
15
11
16
- run mkdir -p artifacts/lib
17
- run mkdir -p artifacts/include
12
+ build_and_install " libXau" configure-static
13
+ build_and_install " libXcb" configure-static
14
+ build_and_install " libX11" configure-static
15
+ build_and_install " libXcomposite" configure-static
16
+ build_and_install " libXdamage" configure-static
17
+ build_and_install " libXext" configure-static
18
+ build_and_install " libXrender" configure-static
19
+ build_and_install " libXrandr" configure-static
20
+ build_and_install " libXtst" configure-static
18
21
19
- while IFS=' =' read -r lib version; do
20
- echo " Processing lib${lib} ..."
21
- if [[ -n " $lib " && ! " $lib " =~ ^# ]]; then
22
- if [[ " $lib " == " Xi" || " $lib " == " Xtrans" || " $lib " == " xorgproto" || " $lib " == " util-macros" ]]; then
23
- continue
24
- fi
25
- echo " Cloning lib${lib} ..."
26
- build_and_install " ${FREEDESKTOP_GIT} xorg/lib/lib${lib} .git" " lib${lib} -$version " autogen-static --prefix= " $( pwd) /lib${lib} /build"
27
- echo " Copying lib${lib} to artifacts/lib..."
28
- run cp -r lib" ${lib} " /build/lib/* .a artifacts/lib/
29
- for dir in " lib${lib} " /build/include/* /; do
30
- run cp -r " $dir " artifacts/include/
31
- done
32
- fi
33
- done < " $LIBRARIES_FILE "
34
- echo " All libraries successfully built"
22
+ copy_libs " libXau" " artifacts"
23
+ copy_libs " libXcb" " artifacts"
24
+ copy_libs " libX11" " artifacts"
25
+ copy_libs " libXcomposite" " artifacts"
26
+ copy_libs " libXdamage" " artifacts"
27
+ copy_libs " libXext" " artifacts"
28
+ copy_libs " libXfixes" " artifacts"
29
+ copy_libs " libXrender" " artifacts"
30
+ copy_libs " libXrandr" " artifacts"
31
+ copy_libs " libXtst" " artifacts"
0 commit comments