summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorredchenjs2019-06-26 17:33:30 +0800
committerredchenjs2019-06-26 17:33:30 +0800
commitc0db0f511b844a94dedd1d5dccff1330f256bd76 (patch)
tree83279adae8578975cf056b39686d4294e9f8a0f6
parent4c487aa04e95ec248048dfe8db719a1fc29a731c (diff)
downloadaur-c0db0f511b844a94dedd1d5dccff1330f256bd76.tar.gz
fix package() error
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD9
2 files changed, 8 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index dc3fdc1d169..a1c3b835c38 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = mitalk
pkgdesc = MiTalk Messenger
pkgver = 4.0.13
- pkgrel = 1
+ pkgrel = 2
url = http://www.miliao.com/
arch = x86_64
license = custom
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