summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorredchenjs2019-06-26 21:03:49 +0800
committerredchenjs2019-06-26 21:03:49 +0800
commit667b49e3870bc7fcc394c86a4008dfa98706d41b (patch)
tree4efe066a1448792a8e1425912b88ea1446922cce
parent29037bfccc17211461f1e5d5827d0c1cdf6ea570 (diff)
downloadaur-667b49e3870bc7fcc394c86a4008dfa98706d41b.tar.gz
update to 4.0.19
-rw-r--r--.SRCINFO9
-rw-r--r--PKGBUILD35
2 files changed, 14 insertions, 30 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a1c3b835c38..5d729165bfa 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +1,14 @@
pkgbase = mitalk
pkgdesc = MiTalk Messenger
- pkgver = 4.0.13
- pkgrel = 2
+ pkgver = 4.0.19
+ pkgrel = 1
url = http://www.miliao.com/
arch = x86_64
license = custom
- makedepends = imagemagick
makedepends = p7zip
makedepends = sed
- source = mitalk.appimage::https://s1.zb.mi.com/miliao/apk/miliao/7.4/MiTalk_4.0.13.AppImage
- md5sums = 692fc2549674c10a86c01d9b13d8bea3
+ source = mitalk.appimage::https://s1.zb.mi.com/miliao/apk/miliao/7.4/MiTalk_4.0.19.AppImage
+ md5sums = b6d92c52d2c0f27e55a07b5f1255669e
pkgname = mitalk
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
}