#!/bin/bash

pkgs="fonts-horai-umefont libreoffice libreoffice-gtk libreoffice-l10n-ja libreoffice-nlpsolver libreoffice-style-tango"

datadir=$(cd $(dirname "$0") && pwd)

. ${datadir}/common.fnc

# Check
if [ "$1" == "-c" ] ; then
	if [ $(_check ${pkgs}) == "n" ] ; then
		echo FALSE
	else
		echo TRUE
	fi
	
# Install
elif [ "$1" == "-i" ] ; then
	_install ${pkgs}
	cp /usr/lib/libreoffice/share/xdg/startcenter.desktop `_desktop`/startcenter.desktop
	
# Purge
elif [ "$1" == "-p" ] ; then
	_purge ${pkgs}
	rm -f `_desktop`/startcenter.desktop
fi
