summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD8
1 files changed, 7 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 564aa00eee9..f8ed815438b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -63,11 +63,17 @@ package() {
cd "$pkgdir"/$_jvmdir
msg2 "Fixing directory structure..."
- # Suffix .desktops + icons (sun-java.png -> sun-java-$_jname.png)
+ # Suffix .desktops + icon (sun-jcontrol.png -> sun-jcontrol-$_jname.png)
for i in $(find lib/desktop/ -type f); do
rename -- "." "-$_jname." $i
done
+ # Link missing icons
+ for i in $(find lib/desktop/icons/ -name "*-$_jname.png" -type f); do
+ ln -s "sun-jcontrol-$_jname.png" "${i/jcontrol/java}"
+ ln -s "sun-jcontrol-$_jname.png" "${i/jcontrol/javaws}"
+ done
+
# Fix .desktop's
sed -e '/JavaWS/!s|Name=Java|Name=Java '"$_major"'|' \
-e "s|Name=JavaWS|Name=JavaWS $_major|" \