diff options
author | YidaozhanYa | 2021-10-08 18:48:38 +0800 |
---|---|---|
committer | YidaozhanYa | 2021-10-08 18:48:38 +0800 |
commit | 7c2c041f30d41373f06aa27c7b49de4e468c9afd (patch) | |
tree | 2b01fc9f8b1646078c729132ad173283c8bad732 | |
download | aur-7c2c041f30d41373f06aa27c7b49de4e468c9afd.tar.gz |
com.seewo.easinote5
-rw-r--r-- | .SRCINFO | 23 | ||||
-rw-r--r-- | PKGBUILD | 32 | ||||
-rw-r--r-- | com.seewo.easinote5.install | 13 |
3 files changed, 68 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..506b1abf73b2 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +pkgbase = com.seewo.easinote5 + pkgdesc = Seewo EasiNote5 for Linux. + pkgver = 5.1.17.1876 + pkgrel = 1 + url = https://gitlab.gz.cvte.cn/front-end/enow-cloud + install = com.seewo.easinote5.install + arch = x86_64 + groups = + license = MIT + depends = desktop-file-utils + depends = gtk3 + depends = hicolor-icon-theme + depends = libnotify + depends = libxss + depends = libxtst + depends = nss + depends = xdg-utils + options = !strip + options = !emptydirs + source = https://github.com/YidaozhanYa/seewo-uos-bin/releases/download/main/EasiNote5_5.1.17.1876.deb + sha512sums = ac8983af4397c17c324efb1505f98028866ab68f385f05deea92e73ab1d0efe2f2c50ff591c26091e8318366f6ff16dec846b4f908083fb55325d86988b4be87 + +pkgname = com.seewo.easinote5 diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..700e275d8a5f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Generated by debtap & modified by YidaozhanYa +# Maintainer: YidaozhanYa <yidaozhan_ya@outlook.com> +# Maintainer: YidaozhanYa <yidaozhan_ya@outlook.com> +pkgname=com.seewo.easinote5 +pkgver=5.1.17.1876 +pkgrel=1 +pkgdesc="Seewo EasiNote5 for Linux." +arch=('x86_64') +url="https://gitlab.gz.cvte.cn/front-end/enow-cloud" +license=('MIT') +groups=('') +depends=('desktop-file-utils' 'gtk3' 'hicolor-icon-theme' 'libnotify' 'libxss' 'libxtst' 'nss' 'xdg-utils') +options=('!strip' '!emptydirs') +install=${pkgname}.install +source=("https://github.com/YidaozhanYa/seewo-uos-bin/releases/download/main/EasiNote5_5.1.17.1876.deb") +sha512sums=('ac8983af4397c17c324efb1505f98028866ab68f385f05deea92e73ab1d0efe2f2c50ff591c26091e8318366f6ff16dec846b4f908083fb55325d86988b4be87') + +package(){ + + # Extract package data + export LANG=en_US.UTF-8 + export LC_ALL=en_US.UTF-8 + echo "正在解压并安装deb包" + tar xf data.tar.xz -C "${pkgdir}" + mkdir -p "${pkgdir}/usr/share/applications" + install -D -m644 "${pkgdir}/opt/apps/com.seewo.easinote5/files/LICENSES.chromium.html" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + echo "正在创建应用列表快捷方式" + sed -i "1i\#!/usr/bin/bash" "${pkgdir}/opt/apps/com.seewo.easinote5/files/com.seewo.easinote5.sh" + cp "${pkgdir}/opt/apps/com.seewo.easinote5/entries/applications/com.seewo.easinote5.desktop" "${pkgdir}/usr/share/applications/com.seewo.easinote5.desktop" + echo "正在刷新图标缓存" + +} diff --git a/com.seewo.easinote5.install b/com.seewo.easinote5.install new file mode 100644 index 000000000000..b50ffb36e4a2 --- /dev/null +++ b/com.seewo.easinote5.install @@ -0,0 +1,13 @@ +post_install() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor + update-desktop-database -q +} + +post_upgrade() { + post_install +} + +post_remove() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor + update-desktop-database -q +} |