Blame docker-builder-data/build/script/packet/gtk-3.22.12.sh

3b09af
DEPS="epoxy-master rsvg-2.40.16 atk-2.22.0 gdkpixbuf-2.36.0 cairo-1.15.4 pango-1.40.3"
221c28
DEPS_NATIVE="gtk-3.22.12"
ce0d6b
221c28
PK_DIRNAME="gtk+-3.22.12"
ce0d6b
PK_ARCHIVE="$PK_DIRNAME.tar.xz"
ce0d6b
PK_URL="https://download.gnome.org/sources/gtk+/3.22/$PK_ARCHIVE"
ce0d6b
ce0d6b
source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh
3b09af
3b09af
if [ "$PLATFORM" = "linux" ] || [ ! -z "$IS_NATIVE" ]; then
3b09af
    DEPS="$DEPS atspi2atk-2.22.0"
3b09af
fi
3b09af
6a65b0
if [ "$PLATFORM" = "win" ]; then
6a65b0
    PK_CONFIGURE_OPTIONS="--enable-introspection=no"
6a65b0
fi
6a65b0
3b09af
pkinstall() {
3b09af
    cd "$BUILD_PACKET_DIR/$PK_DIRNAME"
3b09af
    local LOCAL_BIN="$BUILD_PACKET_DIR/$PK_DIRNAME/gtk"
3b09af
    local LOCAL_BIN_NATIVE="$ENVDEPS_NATIVE_PACKET_DIR/bin"
3b09af
    if [ "$PLATFORM" = "win" ] && [ ! -f "$LOCAL_BIN/gtk-query-immodules-3.0.exe.orig" ]; then
3b09af
         mv "$LOCAL_BIN/gtk-query-immodules-3.0.exe" "$LOCAL_BIN/gtk-query-immodules-3.0.exe.orig" || return 1
3b09af
         cp "$LOCAL_BIN_NATIVE/gtk-query-immodules-3.0" "$LOCAL_BIN/gtk-query-immodules-3.0.exe"
3b09af
         mv "$LOCAL_BIN/gtk-update-icon-cache.exe" "$LOCAL_BIN/gtk-update-icon-cache.exe.orig"
3b09af
         cp "$LOCAL_BIN_NATIVE/gtk-update-icon-cache" "$LOCAL_BIN/gtk-update-icon-cache.exe"
3b09af
    fi
3b09af
    make install || return 1
3b09af
    if [ "$PLATFORM" = "win" ]; then
3b09af
         cp "$LOCAL_BIN/gtk-query-immodules-3.0.exe.orig" "$INSTALL_PACKET_DIR/bin/" || return 1 
3b09af
         cp "$LOCAL_BIN/gtk-update-icon-cache.exe.orig" "$INSTALL_PACKET_DIR/bin/" || return 1
3b09af
    fi
3b09af
}
3b09af