Blame env-builder-data/build/script/packet/appimagekit-master.sh

3b09af
DEPS="png-1.6.26"
3b09af
DEPS_NATIVE="cmake-3.6.2"
ce4e6e
ce4e6e
PK_DIRNAME="AppImageKit"
ce4e6e
PK_URL="https://github.com/probonopd/$PK_DIRNAME.git"
634afd
PK_GIT_CHECKOUT="d5102de21952217e2f9d0d2119442f843e0fa4dd"
ce4e6e
99b145
source $INCLUDE_SCRIPT_DIR/inc-pkall-git.sh
ce4e6e
ce4e6e
pkbuild() {
ce4e6e
    cd "$BUILD_PACKET_DIR/$PK_DIRNAME"
ce4e6e
	
ce4e6e
	if ! check_packet_function $NAME build.configure; then
ce4e6e
		if ! cmake -DCMAKE_INSTALL_PREFIX:PATH=$INSTALL_PACKET_DIR .; then
ce4e6e
    		return 1
ce4e6e
    	fi
ce4e6e
		set_done $NAME build.configure
ce4e6e
    fi
ce4e6e
	
ce4e6e
	if ! make -j${THREADS}; then
ce4e6e
		return 1
ce4e6e
	fi
ce4e6e
}
b0fa99
b0fa99
pkinstall() {
b0fa99
	mkdir -p "$INSTALL_PACKET_DIR/bin"
7bd1ae
	if ! (cp --remove-destination "$BUILD_PACKET_DIR/$PK_DIRNAME/AppImageAssistant" "$INSTALL_PACKET_DIR/bin/" \
7bd1ae
	 && cp --remove-destination "$BUILD_PACKET_DIR/$PK_DIRNAME/AppRun" "$INSTALL_PACKET_DIR/bin/" \
ec0475
	 && cp --remove-destination "$BUILD_PACKET_DIR/$PK_DIRNAME/desktopintegration" "$INSTALL_PACKET_DIR/bin/" \
ec0475
	 && chmod a+x "$INSTALL_PACKET_DIR/bin/desktopintegration"); then
b0fa99
		return 1
b0fa99
	fi
b0fa99
}