diff options
Diffstat (limited to 'packages/net-im/psi')
-rw-r--r-- | packages/net-im/psi/psi-scm.exheres-0 | 39 |
1 files changed, 30 insertions, 9 deletions
diff --git a/packages/net-im/psi/psi-scm.exheres-0 b/packages/net-im/psi/psi-scm.exheres-0 index 5482956..c0d9689 100644 --- a/packages/net-im/psi/psi-scm.exheres-0 +++ b/packages/net-im/psi/psi-scm.exheres-0 @@ -38,6 +38,7 @@ SLOT="0" PLATFORMS="~amd64 ~x86" SUMMARY="Qt XMPP client" HOMEPAGE="http://psi-im.org/" +LANGS="be bg ca cs de en eo es et fa fi fr he hu it ja kk mk nl pl pt pt_BR ru sk sl sr@latin sv sw uk ur_PK vi zh_CN zh_TW" MYOPTIONS=" crypt debug @@ -63,6 +64,7 @@ MYOPTIONS=" webp whiteboarding xscreensaver + linguas: ( ${LANGS} ) " DEPENDENCIES=" @@ -100,6 +102,13 @@ DEPENDENCIES=" #$DEFAULT_SRC_PREPARE_PATCHES=( #) +pkg_setup() { + MY_PN=psi + if option extras; then + MY_PN=psi-plus + fi +} + src_prepare() { default_src_prepare edo mv ../psiplus psi-plus @@ -160,13 +169,25 @@ src_compile() { option doc && emake -C doc api_public } -#src_install() { -# emake INSTALL_ROOT="${D}" install + +src_install() { +# qmake_src_install + default_src_install + # rm "${ED}"/usr/share/${MY_PN}/{COPYING,README.html} || die "Installed file set seems to be changed by upstream" -# newdoc iconsets/roster/README README.roster -# newdoc iconsets/system/README README.system -# newdoc certs/README README.certs -# dodoc README.html -# option doc && HTML_DOCS=( doc/api/. ) -# emagicdocs -#} + newdoc iconsets/roster/README README.roster + newdoc iconsets/system/README README.system + newdoc certs/README README.certs + dodoc README.html + option doc && HTML_DOCS=( doc/api/. ) + emagicdocs + mylrelease=lrelease-qt5 + cd "${WORK}"/psi-l10n + insinto /usr/share/${MY_PN} + for lang in ${LANGS}; do + if option "linguas:${lang}"; then + "${mylrelease}" "translations/${PN}_${lang}.ts" || die "lrelease ${1} failed" + doins "translations/${PN}_${lang}.qm" + fi + done +} |