summaryrefslogtreecommitdiff
path: root/libre/java7-openjdk/jre7-openjdk.install
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-09-08 01:43:22 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-09-08 01:43:22 -0300
commit228fc3b3d96fbdaedd8271e4a1441d96cf7d5792 (patch)
tree2fd52fad969870e6c85169314b30b8f2c0369650 /libre/java7-openjdk/jre7-openjdk.install
parentacc023c4976c160d288b39c7dc2cadcb153eddbc (diff)
downloadabslibre-228fc3b3d96fbdaedd8271e4a1441d96cf7d5792.tar.gz
abslibre-228fc3b3d96fbdaedd8271e4a1441d96cf7d5792.tar.bz2
abslibre-228fc3b3d96fbdaedd8271e4a1441d96cf7d5792.zip
{j{re,dk}{7,8}-openjdk,jre{7,8}-openjdk-headless}: add new packages to [libre] for branding reasons
Diffstat (limited to 'libre/java7-openjdk/jre7-openjdk.install')
-rw-r--r--libre/java7-openjdk/jre7-openjdk.install45
1 files changed, 45 insertions, 0 deletions
diff --git a/libre/java7-openjdk/jre7-openjdk.install b/libre/java7-openjdk/jre7-openjdk.install
new file mode 100644
index 000000000..dd1458385
--- /dev/null
+++ b/libre/java7-openjdk/jre7-openjdk.install
@@ -0,0 +1,45 @@
+this_java='java-7-openjdk/jre'
+
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor 2> /dev/null
+ echo "when you use a non-reparenting window manager"
+ echo "set _JAVA_AWT_WM_NONREPARENTING=1 in"
+ echo "/etc/profile.d/jre.sh"
+
+# update-desktop-database -q
+
+ default=$(/usr/bin/parabola-java get)
+ if [ -z "${default}" ]; then
+ /usr/bin/parabola-java set ${this_java}
+ elif [ "${default/\/jre}" = "${this_java/\/jre}" ]; then
+ /usr/bin/parabola-java fix
+ else
+ echo "Default Java environment is already set to '${default}'"
+ echo "To set '${this_java}' as default, consider using:"
+ echo " parabola-java set '${this_java}'"
+ fi
+}
+
+post_upgrade() {
+ xdg-icon-resource forceupdate --theme hicolor 2> /dev/null
+
+# update-desktop-database -q
+
+ default=$(/usr/bin/parabola-java get)
+ if [ -z "${default}" ]; then
+ /usr/bin/parabola-java set ${this_java}
+ elif [ "${default/\/jre}" = "${this_java/\/jre}" ]; then
+ /usr/bin/parabola-java fix
+ fi
+}
+
+post_remove() {
+ xdg-icon-resource forceupdate --theme hicolor 2> /dev/null
+
+# update-desktop-database -q
+
+ default=$(/usr/bin/parabola-java get)
+ if [ "${default/\/jre}" = "${this_java/\/jre}" ]; then
+ /usr/bin/parabola-java fix
+ fi
+}