libreoffice-bin-i18n: misc fixes

This commit is contained in:
Ypnose 2013-08-25 13:19:01 +02:00
parent f10e886d69
commit 7742e2c6b1

View file

@ -1,7 +1,7 @@
# Template file for 'libreoffice-bin-i18n'
pkgname=libreoffice-bin-i18n
version=4.1.0
revision=1
revision=2
hostmakedepends="rpmextract"
short_desc="LibreOffice localization files (binary build)"
maintainer="Ypnose <linuxienATlegtuxDOTorg>"
@ -353,7 +353,7 @@ do_build() {
_tarbname="${_tarbname%*.tar.gz}"
_lang="${_tarbname##*_}"
echo "Unpacking ${_tarbname}..."
# We create a folder using p_${_lang} (for example p_zh-TW) containing opt/, with helppack and/or langpack extracted inside it.
# We create a folder using p_${_lang} (for example p_zh-TW) containing opt/libreoffice*, with helppack and/or langpack extracted inside it.
[ ! -d "${wrksrc}/p_${_lang}" ] && mkdir ${wrksrc}/p_${_lang}
cd ${wrksrc}/p_${_lang}
if [ -d "${wrksrc}/LibreOffice_${_localver}_Linux_x86_rpm_helppack_${_lang}/RPMS/" ]; then
@ -400,7 +400,7 @@ libreoffice-bin-i18n-af_package () {
short_desc+=" - Afrikaans language pack"
pkg_install() {
install -d ${PKGDESTDIR}/opt
cp -R ${wrksrc}/p_af/opt/libreoffice* ${PKGDESTDIR}/opt/
cp -R ${wrksrc}/p_af/opt/libreoffice*/ ${PKGDESTDIR}/opt/
}
}
@ -410,7 +410,7 @@ libreoffice-bin-i18n-am_package () {
short_desc+=" - Amharic language pack"
pkg_install() {
install -d ${PKGDESTDIR}/opt
cp -R ${wrksrc}/p_am/opt/libreoffice* ${PKGDESTDIR}/opt/
cp -R ${wrksrc}/p_am/opt/libreoffice*/ ${PKGDESTDIR}/opt/
}
}