libreoffice-i18n: sync prefix with libreoffice.
This commit is contained in:
parent
90f403a0f7
commit
9ae9aebd3e
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'libreoffice-i18n'
|
# Template file for 'libreoffice-i18n'
|
||||||
pkgname=libreoffice-i18n
|
pkgname=libreoffice-i18n
|
||||||
version=5.1.2
|
version=5.1.2
|
||||||
revision=1
|
revision=2
|
||||||
build_style=meta
|
build_style=meta
|
||||||
nocross=yes
|
nocross=yes
|
||||||
hostmakedepends="rpmextract"
|
hostmakedepends="rpmextract"
|
||||||
|
@ -294,7 +294,7 @@ do_build() {
|
||||||
_lang="${_tarbname##*_}"
|
_lang="${_tarbname##*_}"
|
||||||
echo "Unpacking ${_tarbname}..."
|
echo "Unpacking ${_tarbname}..."
|
||||||
# We create a directory using p_${_lang}, for example p_zh-TW, containing
|
# We create a directory using p_${_lang}, for example p_zh-TW, containing
|
||||||
# opt/libreofficeX.Y/lib/libreoffice, with helppack and/or langpack
|
# opt/libreofficeX.Y/out, with helppack and/or langpack
|
||||||
# extracted inside it.
|
# extracted inside it.
|
||||||
mkdir -p ${wrksrc}/p_${_lang}
|
mkdir -p ${wrksrc}/p_${_lang}
|
||||||
cd ${wrksrc}/p_${_lang}
|
cd ${wrksrc}/p_${_lang}
|
||||||
|
@ -304,8 +304,8 @@ do_build() {
|
||||||
if [ -d "${wrksrc}/LibreOffice_${_localver}_Linux_x86_rpm_langpack_${_lang}/RPMS/" ]; then
|
if [ -d "${wrksrc}/LibreOffice_${_localver}_Linux_x86_rpm_langpack_${_lang}/RPMS/" ]; then
|
||||||
rpmextract ${wrksrc}/LibreOffice_${_localver}_Linux_x86_rpm_langpack_${_lang}/RPMS/*.rpm
|
rpmextract ${wrksrc}/LibreOffice_${_localver}_Linux_x86_rpm_langpack_${_lang}/RPMS/*.rpm
|
||||||
fi
|
fi
|
||||||
mkdir -p lib/libreoffice
|
mkdir -p out
|
||||||
cp -pRv opt/libreoffice${version%.*}/* lib/libreoffice/
|
cp -pRv opt/libreoffice${version%.*}/* out/
|
||||||
rm -rf opt
|
rm -rf opt
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
@ -333,8 +333,8 @@ _pkgtmpl() {
|
||||||
depends="libreoffice>=${version}"
|
depends="libreoffice>=${version}"
|
||||||
short_desc="LibreOffice localization files - $2 language pack"
|
short_desc="LibreOffice localization files - $2 language pack"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmkdir usr/libreoffice${_version}
|
vmkdir usr/lib/libreoffice
|
||||||
mv ${wrksrc}/p_${_lang}/lib ${PKGDESTDIR}/usr/libreoffice${_version}/
|
mv ${wrksrc}/p_${_lang}/out/* ${PKGDESTDIR}/usr/lib/libreoffice/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue