summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorredchenjs2019-06-22 17:28:09 +0800
committerredchenjs2019-06-22 17:28:09 +0800
commit4c487aa04e95ec248048dfe8db719a1fc29a731c (patch)
treecb908b3f544d68e1fab8690b547c414313055b08
parent926d3b00c7d9cd1b0d798f978e9d1ec1be0f6263 (diff)
downloadaur-4c487aa04e95ec248048dfe8db719a1fc29a731c.tar.gz
minor fixes
-rw-r--r--PKGBUILD14
1 files changed, 2 insertions, 12 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 8fe29384aa3..b8569aec71c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -22,23 +22,14 @@ md5sums=(
package() {
7z x mitalk.appimage -o"${pkgdir}"/opt/mitalk/
- chmod 755 "${pkgdir}"/opt/mitalk/米聊
- chmod 755 "${pkgdir}"/opt/mitalk/AppRun
-
- chmod 755 "${pkgdir}"/opt/
- chmod 755 "${pkgdir}"/opt/mitalk/
- chmod 755 "${pkgdir}"/opt/mitalk/lib/
- chmod 755 "${pkgdir}"/opt/mitalk/usr/
- chmod 755 "${pkgdir}"/opt/mitalk/usr/lib/
- chmod 755 "${pkgdir}"/opt/mitalk/locales/
- chmod 755 "${pkgdir}"/opt/mitalk/resources/
- chmod 755 "${pkgdir}"/opt/mitalk/swiftshader/
+ chmod -R 755 "${pkgdir}"/opt/
for i in 16x16 22x22 24x24 32x32 48x48 64x64 128x128 256x256; do
convert -adaptive-resize $i "${pkgdir}"/opt/mitalk/usr/share/icons/hicolor/0x0/apps/米聊.png \
"${pkgdir}"/opt/mitalk/usr/share/icons/hicolor/0x0/apps/mitalk_$1.png
install -Dm644 "${pkgdir}"/opt/mitalk/usr/share/icons/hicolor/0x0/apps/mitalk_$1.png \
"${pkgdir}"/usr/share/icons/hicolor/$i/apps/mitalk.png
+ rm "${pkgdir}"/opt/mitalk/usr/share/icons/hicolor/0x0/apps/mitalk_$1.png
done
sed -i "s/Icon=米聊/Icon=mitalk/" "${pkgdir}"/opt/mitalk/米聊.desktop
@@ -49,6 +40,5 @@ package() {
rm "${pkgdir}"/opt/mitalk/米聊.png
rm "${pkgdir}"/opt/mitalk/米聊.desktop
- rm -r "${pkgdir}"/opt/mitalk/usr/share/
rm -r "${pkgdir}"/opt/mitalk/resources/app.asar.unpacked/
}