summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD35
1 files changed, 10 insertions, 25 deletions
diff --git a/PKGBUILD b/PKGBUILD
index b9ce7df176c..b47bfc5349d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,22 +1,21 @@
# Maintainer: Jack Chen <redchenjs@live.com>
pkgname=mitalk
-pkgver=4.0.13
-pkgrel=2
+pkgver=4.0.19
+pkgrel=1
pkgdesc="MiTalk Messenger"
arch=('x86_64')
url="http://www.miliao.com/"
license=('custom')
makedepends=(
- 'imagemagick'
'p7zip'
'sed'
)
source=(
- 'mitalk.appimage::https://s1.zb.mi.com/miliao/apk/miliao/7.4/MiTalk_4.0.13.AppImage'
+ 'mitalk.appimage::https://s1.zb.mi.com/miliao/apk/miliao/7.4/MiTalk_4.0.19.AppImage'
)
md5sums=(
- '692fc2549674c10a86c01d9b13d8bea3'
+ 'b6d92c52d2c0f27e55a07b5f1255669e'
)
package() {
@@ -24,26 +23,12 @@ 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
+ mkdir -p "${pkgdir}"/usr/
+ mv "${pkgdir}"/opt/mitalk/usr/share/ "${pkgdir}"/usr/
- 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/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/Exec=AppRun/Exec=\/opt\/mitalk\/AppRun/g" "${pkgdir}"/opt/mitalk/mitalk.desktop
+ install -Dm644 "${pkgdir}"/opt/mitalk/mitalk.desktop "${pkgdir}"/usr/share/applications/mitalk.desktop
- sed -i "s/米聊/mitalk/g" "${pkgdir}"/opt/mitalk/AppRun
- sed -i "s/Icon=米聊/Icon=mitalk/g" "${pkgdir}"/opt/mitalk/米聊.desktop
- sed -i "s/Exec=AppRun/Exec=\/opt\/mitalk\/AppRun/g" "${pkgdir}"/opt/mitalk/米聊.desktop
-
- install -Dm644 "${pkgdir}"/opt/mitalk/米聊.desktop "${pkgdir}"/usr/share/applications/mitalk.desktop
-
- rm "${pkgdir}"/opt/mitalk/米聊.png
- rm "${pkgdir}"/opt/mitalk/米聊.desktop
-
- rm -r "${pkgdir}"/opt/mitalk/resources/app.asar.unpacked/
+ rm "${pkgdir}"/opt/mitalk/mitalk.png
+ rm "${pkgdir}"/opt/mitalk/mitalk.desktop
}