summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD9
1 files changed, 7 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index b8569aec71c..e0b94445d5e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=mitalk
pkgver=4.0.13
-pkgrel=1
+pkgrel=2
pkgdesc="MiTalk Messenger"
arch=('x86_64')
url="http://www.miliao.com/"
@@ -24,14 +24,19 @@ package() {
chmod -R 755 "${pkgdir}"/opt/
+ mv "${pkgdir}"/opt/mitalk/米聊 "${pkgdir}"/opt/mitalk/mitalk
+ mv "${pkgdir}"/opt/mitalk/usr/share/icons/hicolor/0x0/apps/米聊.png \
+ "${pkgdir}"/opt/mitalk/usr/share/icons/hicolor/0x0/apps/mitalk.png
+
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 \
+ convert -adaptive-resize $i "${pkgdir}"/opt/mitalk/usr/share/icons/hicolor/0x0/apps/mitalk.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/米聊/mitalk/" "${pkgdir}"/opt/mitalk/AppRun
sed -i "s/Icon=米聊/Icon=mitalk/" "${pkgdir}"/opt/mitalk/米聊.desktop
sed -i "s/Exec=AppRun/Exec=\/opt\/mitalk\/AppRun/" "${pkgdir}"/opt/mitalk/米聊.desktop