# SliTaz package receipt.

PACKAGE="squirrelmail-ko_KR"
VERSION="1.4.18-20090526"
CATEGORY="network"
SHORT_DESC="Locale ko_KR for squirrelmail."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://www.squirrelmail.org/"

DEPENDS="squirrelmail"
WANTED="squirrelmail-locales"

HOST_ARCH="any"

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr/share/squirrelmail/locale
	cp -a $src/locale/${PACKAGE#squirrelmail-} \
		$fs/usr/share/squirrelmail/locale
}

# Pre and post install commands for Tazpkg.
post_install()
{
	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" "$1/etc/squirrelmail/config.php"
}