Blame env-builder-data/build/script/packet/ufraw-appimage.sh

f08c03
DEPS="ufraw-0.22"
f08c03
DEPS_NATIVE="appimagekit-master"
f08c03
f08c03
PK_APPIMAGEKIT_DIR=$PACKET_DIR/appimagekit-master/
f08c03
PK_APPDIR_NAME="ufraw"
f08c03
f08c03
pkinstall() {
f08c03
    # copy files from envdeps (install requires envdeps explicit)
f08c03
f08c03
    local APPDIR="$INSTALL_PACKET_DIR/$PK_APPDIR_NAME.AppDir"
f08c03
    mkdir -p "$APPDIR/usr"
f08c03
    mkdir -p "$APPDIR/usr/bin"
f08c03
    mkdir -p "$APPDIR/usr/lib"
f08c03
f08c03
    cp --remove-destination "$ENVDEPS_NATIVE_PACKET_DIR/bin/AppRun" "$APPDIR/" || return 1
f08c03
    cp --remove-destination "$ENVDEPS_NATIVE_PACKET_DIR/bin/desktopintegration" "$APPDIR/usr/bin/ufraw.wrapper"|| return 1
f08c03
f08c03
    cp --remove-destination "$FILES_PACKET_DIR/ufraw.desktop" "$APPDIR/" || return 1
f08c03
    cp --remove-destination "$FILES_PACKET_DIR/ufraw.png" "$APPDIR/" || return 1
f08c03
    cp --remove-destination "$FILES_PACKET_DIR/launch.sh" "$APPDIR/usr/bin/" || return 1
f08c03
305314
    copy_system_lib libselinux "$APPDIR/usr/lib/" || return 1
f08c03
}
f08c03
f08c03
pkinstall_release() {
f08c03
    if ! copy "$INSTALL_PACKET_DIR" "$INSTALL_RELEASE_PACKET_DIR"; then
f08c03
        return 1
f08c03
    fi
f08c03
f08c03
    # copy files from envdeps_release (install_release requires envdeps_release explicit)
f08c03
f08c03
    local APPDIR="$INSTALL_RELEASE_PACKET_DIR/$PK_APPDIR_NAME.AppDir"
f08c03
    copy "$ENVDEPS_RELEASE_PACKET_DIR" "$APPDIR/usr" || return 1
f08c03
f08c03
    cd "$INSTALL_RELEASE_PACKET_DIR" || return 1
f08c03
    rm -f "$PK_APPDIR_NAME.tar.gz" || return 1
f08c03
    tar -czf "$PK_APPDIR_NAME.tar.gz" "$PK_APPDIR_NAME.AppDir" || return 1
f08c03
    rm -f "$INSTALL_RELEASE_PACKET_DIR/$PK_APPDIR_NAME.appimage" || return 1
f08c03
    AppImageAssistant "$APPDIR" "$INSTALL_RELEASE_PACKET_DIR/$PK_APPDIR_NAME.appimage" || return 1
f08c03
f08c03
    rm -rf "$APPDIR"
f08c03
}