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

369e6c
DEPS="wxphoenix-master python3pyaudio-master"
e92ef7
f0ec65
if [ "$PLATFORM" = "win" ]; then
18e95a
    DEPS_NATIVE="nsis-2.50"
f0ec65
fi
f0ec65
e92ef7
PK_DIRNAME="papagayo-ng"
e92ef7
PK_URL="https://github.com/morevnaproject/$PK_DIRNAME.git"
e92ef7
99b145
PK_LICENSE_FILES="readme.txt gpl.txt"
99b145
99b145
source $INCLUDE_SCRIPT_DIR/inc-pkall-git.sh
e92ef7
e92ef7
pkbuild() {
e92ef7
	return 0
e92ef7
}
e92ef7
e92ef7
pkinstall() {
369e6c
	mkdir -p "$INSTALL_PACKET_DIR/opt"
369e6c
	local TARGET="$INSTALL_PACKET_DIR/opt/papagayong"
369e6c
	rm -rf "$TARGET"
369e6c
	cp -r "$BUILD_PACKET_DIR/$PK_DIRNAME" "$TARGET" || return 1
369e6c
369e6c
	mkdir -p "$INSTALL_PACKET_DIR/share/icons/default/128x128/apps"
369e6c
	mkdir -p "$INSTALL_PACKET_DIR/share/icons/default/128x128/mimetypes"
369e6c
		mkdir -p "$INSTALL_PACKET_DIR/share/mime"
369e6c
	cp "$BUILD_PACKET_DIR/$PK_DIRNAME/rsrc/papagayo-ng.png" "$INSTALL_PACKET_DIR/share/icons/default/128x128/apps/papagayong.png" || return 1
369e6c
	#cp "$BUILD_PACKET_DIR/$PK_DIRNAME/rsrc/papagayo-ng.png" "$INSTALL_PACKET_DIR/share/icons/default/128x128/mimetypes/application-x-papagayo.png" || return 1
369e6c
	cp "$FILES_PACKET_DIR/papagayo.xml" "$INSTALL_PACKET_DIR/share/mime/" || return 1
e92ef7
	return 0
e92ef7
}