[Frugalware-git] frugalware-current: include/thunderbird-i18n.sh
Michel Hermier
hermier at frugalware.org
Sat Jul 18 16:36:38 CEST 2009
Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=569e58ab344fe3182130ed24f9a50fae9fc5c526
commit 569e58ab344fe3182130ed24f9a50fae9fc5c526
Author: Michel Hermier <hermier at frugalware.org>
Date: Sat Jul 18 16:29:39 2009 +0200
include/thunderbird-i18n.sh
* Provide a thunderbird-i18n.install for all the thunderbird packages.
diff --git a/source/include/thunderbird-i18n.install b/source/include/thunderbird-i18n.install
new file mode 100644
index 0000000..2fe8860
--- /dev/null
+++ b/source/include/thunderbird-i18n.install
@@ -0,0 +1,21 @@
+post_install()
+{
+ /usr/lib/thunderbird/thunderbird-rebuild-databases.pl
+}
+
+post_upgrade()
+{
+ post_install
+}
+
+post_remove()
+{
+ post_install
+}
+
+op=$1
+shift
+
+$op $*
+
+# vim: ft=sh
diff --git a/source/include/thunderbird-i18n.sh b/source/include/thunderbird-i18n.sh
index bd25b7b..7d52962 100644
--- a/source/include/thunderbird-i18n.sh
+++ b/source/include/thunderbird-i18n.sh
@@ -34,7 +34,8 @@
up2date="$(_F_archive_name="thunderbird"; Flastarchive http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/latest/source '-source\.tar\.bz2')"
url="http://www.mozilla.org/projects/l10n/mlp.html"
source=(http://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$pkgver/linux-i686/xpi/$_F_thunderbird_lang.xpi)
-options=('scriptlet')
+options=('scriptlet' 'genscriptlet')
+install=${Fsrcdir%/src}/thunderbird-i18n.install
rodepends=("thunderbird>=$pkgver")
makedepends=('unzip')
groups=('locale-extra')
@@ -42,6 +43,16 @@ archs=('i686' 'x86_64')
###
# == PROVIDED FUNCTIONS
+# * Fbuild_thunderbird_i18n_scriptlet() generates a scriptlet for the given package from
+# the template according to the declared options
+###
+Fbuild_thunderbird_i18n_scriptlet()
+{
+ cp $Fincdir/thunderbird-i18n.install ${Fsrcdir%/src}
+}
+
+###
+# == PROVIDED FUNCTIONS
# * build()
###
build()
@@ -50,4 +61,6 @@ build()
sed -i 's|chrome/||' chrome.manifest
Ffilerel chrome.manifest /usr/lib/thunderbird/chrome/$_F_thunderbird_lang.manifest
Ffilerel chrome/$_F_thunderbird_lang.jar /usr/lib/thunderbird/chrome/$_F_thunderbird_lang.jar
+
+ Fbuild_thunderbird_i18n_scriptlet
}
More information about the Frugalware-git
mailing list