summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDet2017-10-06 22:30:39 +0300
committerDet2017-10-06 22:30:39 +0300
commitef39b64082fb504d48d130dd9cbb52e88548241b (patch)
tree922f3f6420d11f81c58e1ab82dcad6934988a615
parentbb7a16dd7c9c90b3ace56e8c0d354f067b3faf1e (diff)
downloadaur-ef39b64082fb504d48d130dd9cbb52e88548241b.tar.gz
Fix missing icons from tarball
-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|" \