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

b0fa99
DEPS="png-1.6.25 cmake-3.6.2"
ce4e6e
ce4e6e
PK_DIRNAME="AppImageKit"
ce4e6e
PK_URL="https://github.com/probonopd/$PK_DIRNAME.git"
ce4e6e
ce4e6e
source $INCLUDE_SCRIPT_DIR/inc-pkallunpack-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"
b0fa99
	if ! (cp -f "$BUILD_PACKET_DIR/$PK_DIRNAME/AppImageAssistant" "$INSTALL_PACKET_DIR/bin/" \
b0fa99
	 && cp -f "$BUILD_PACKET_DIR/$PK_DIRNAME/AppRun" "$INSTALL_PACKET_DIR/bin/"); then
b0fa99
		return 1
b0fa99
	fi
b0fa99
}