Blame docker-builder-data/build/script/packet/rsvg-2.40.16.sh

ce0d6b
DEPS="xml-2.9.4 gdkpixbuf-2.36.0 cairo-1.14.6 pango-1.40.3"
ce0d6b
ce0d6b
PK_DIRNAME="librsvg-2.40.16"
ce0d6b
PK_ARCHIVE="$PK_DIRNAME.tar.xz"
ce0d6b
PK_URL="https://download.gnome.org/sources/librsvg/2.40/$PK_ARCHIVE"
ce0d6b
f969cc
source $INCLUDE_SCRIPT_DIR/inc-pkallunpack-default.sh
f969cc
source $INCLUDE_SCRIPT_DIR/inc-pkbuild-default.sh
f969cc
source $INCLUDE_SCRIPT_DIR/inc-pkinstall_release-default.sh
f969cc
f969cc
pkinstall() {
f969cc
    cd "$BUILD_PACKET_DIR/$PK_DIRNAME"
f969cc
    make install || return 1
f969cc
    local GDK_API_VERSION=`ls $ENVDEPS_PACKET_DIR/lib/gdk-pixbuf-2.0/ | grep 2`
f969cc
    if [ -z "$GDK_API_VERSION" ]; then
f969cc
        return 1
f969cc
    fi
f969cc
    local GDK_LOADERS="$INSTALL_PACKET_DIR/lib/gdk-pixbuf-2.0/$GDK_API_VERSION/loaders"
f969cc
    mkdir -p "$GDK_LOADERS" || return 1
f969cc
    cp --remove-destination "$BUILD_PACKET_DIR/$PK_DIRNAME/gdk-pixbuf-loader/.libs/libpixbufloader-svg.so" "$GDK_LOADERS/" || return 1
f969cc
}