diff options
author | zxp19821005 | 2023-09-28 17:41:58 +0800 |
---|---|---|
committer | zxp19821005 | 2023-09-28 17:41:58 +0800 |
commit | 39481d40bda712b75747b97ea5ee2543fada8686 (patch) | |
tree | 15e7051bc43f638e7277962bc4c513eda9e450d9 | |
parent | 04f6cf5f9ec5c1f559f9c3013c8d3e4a64b21aca (diff) | |
download | aur-39481d40bda712b75747b97ea5ee2543fada8686.tar.gz |
fix errors
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 23 |
2 files changed, 17 insertions, 8 deletions
@@ -1,7 +1,7 @@ pkgbase = fcitx-huayupinyin pkgdesc = The Input Method Developed by thunisoft pkgver = 2.4.8.207 - pkgrel = 1 + pkgrel = 2 url = https://pinyin.thunisoft.com arch = x86_64 license = LGPL3 @@ -1,24 +1,33 @@ # Maintainer: zxp19821005 <zxp19821005 at 163 dot com> pkgname=fcitx-huayupinyin -_appname="com.thunisoft.input" +_appname=com.thunisoft.input pkgver=2.4.8.207 -pkgrel=1 +pkgrel=2 pkgdesc="The Input Method Developed by thunisoft" -arch=('x86_64') +arch=("x86_64") url="https://pinyin.thunisoft.com" -license=(LGPL3) +license=("LGPL3") conflicts=() providers=(thunisoft) depends=('libxtst' 'qt5-svg' 'qt5-base' 'fcitx' 'fcitx-qt5' 'fcitx-configtool' 'glibc' 'cairo' 'libx11' 'gcc-libs' 'sh' 'dbus') -options=(!strip) +options=("!strip") source=("${pkgname}-${pkgver}.deb::${url}/webapi/v1/downloadSetupFile?os=uos&cpu=x86") sha256sums=('ec965e51f30ddf548d4ab2ba0324bc0e8c6691b39f33112a872eecbb6bf5fa5c') package() { - bsdtar -xvf data.tar.xz -C "${pkgdir}" + bsdtar -xf "${srcdir}/data.tar.xz" -C "${pkgdir}" + install -Dm755 -d "${pkgdir}/usr/bin" + ln -sf "/opt/apps/${_appname}/files/bin/huayupy-config-tools-fcitx" "${pkgdir}/usr/bin/huayupy-config-tools-fcitx" + ln -sf "/opt/apps/${_appname}/files/bin/huayupy-daemon-fcitx" "${pkgdir}/usr/bin/huayupy-daemon-fcitx" + ln -sf "/opt/apps/${_appname}/files/bin/huayupy-merge-wordlib" "${pkgdir}/usr/bin/huayupy-merge-wordlib" + ln -sf "/opt/apps/${_appname}/files/bin/huayupy-qimpanel" "${pkgdir}/usr/bin/huayupy-qimpanel" + ln -sf "/opt/apps/${_appname}/files/bin/huayupy-toolBox" "${pkgdir}/usr/bin/huayupy-toolBox" + ln -sf "/opt/apps/${_appname}/files/bin/huayupy-updater-fcitx" "${pkgdir}/usr/bin/huayupy-updater-fcitx" + ln -sf "/opt/apps/${_appname}/files/bin/huayupy-wl-tool-fcitx" "${pkgdir}/usr/bin/huayupy-wl-tool-fcitx" + ln -sf "/opt/apps/${_appname}/files/bin/special-symbols-fcitx" "${pkgdir}/usr/bin/special-symbols-fcitx" mv "${pkgdir}/usr/lib/x86_64-linux-gnu/fcitx" "${pkgdir}/usr/lib/" find "${pkgdir}" -type d -exec chmod 755 {} \; - echo -e "Icon=fcitx-huayupy \nCategories=System;Utility; \nStartupNotify=false \nNoDisplay=true" >> "${pkgdir}/opt/apps/${_appname}/entries/autostart/${_appname}.desktop" install -Dm644 "${pkgdir}/opt/apps/${_appname}/entries/autostart/${_appname}.desktop" "${pkgdir}/etc/xdg/autostart/${pkgname}.desktop" + #Delete empty dirs rm -rf "${pkgdir}/usr/share/fcitx/imicon" "${pkgdir}/opt/apps/${_appname}/info" "${pkgdir}/usr/lib/x86_64-linux-gnu" install -Dm644 "${pkgdir}/opt/apps/${_appname}/files/lgpl-3.0.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }
\ No newline at end of file |