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

3b09af
DEPS="croco-0.6.11 gdkpixbuf-2.36.0 cairo-1.15.4 pango-1.40.3"
d33075
d33075
if [ "$PLATFORM" = "win" ]; then
d33075
    DEPS_NATIVE="gdkpixbuf-2.36.0"
d33075
fi
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"
99b145
PK_LICENSE_FILES="AUTHORS COPYING COPYING.LIB"
ce0d6b
99b145
source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh
f969cc
3b09af
PK_CONFIGURE_OPTIONS="--enable-introspection=no"
3b09af
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
3b09af
    cp --remove-destination "$BUILD_PACKET_DIR/$PK_DIRNAME/gdk-pixbuf-loader/.libs/libpixbufloader-svg."* "$GDK_LOADERS/" || return 1
f969cc
}