summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorDet2017-10-06 22:30:48 +0300
committerDet2017-10-06 22:30:48 +0300
commit797fdf02fdcc1a6506544316d3840fc81e7bfe87 (patch)
tree124762a20ba8b810478566a2670f0ad34add4f56 /PKGBUILD
parent4f2cbc4ba2fec919d9dbd88b1139768fbdad39dd (diff)
downloadaur-797fdf02fdcc1a6506544316d3840fc81e7bfe87.tar.gz
Fix missing icons from tarball
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD8
1 files changed, 7 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index bcbcea29e68..01f7f7511e4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -74,11 +74,17 @@ package() {
ln -s . jre
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|" \