add weread

This commit is contained in:
lostecho
2023-07-19 14:18:59 +08:00
parent 9e48207c7f
commit c84736f563
3 changed files with 71 additions and 0 deletions

25
pkgs/weread-pake/.SRCINFO Normal file
View File

@@ -0,0 +1,25 @@
pkgbase = weread-pake
pkgdesc = Use Pake to package WeRead.微信读书是广州腾讯科技有限公司推出的阅读软件.为用户推荐合适的书籍,并可查看微信好友的读书动态、与好友讨论正在阅读的书籍等.
pkgver = 2.0.0
pkgrel = 1
url = https://weread.qq.com/
arch = x86_64
license = custom
depends = hicolor-icon-theme
depends = gcc-libs
depends = glib2
depends = dbus
depends = gtk3
depends = gdk-pixbuf2
depends = glibc
depends = cairo
depends = webkit2gtk
depends = openssl-1.1
depends = pango
conflicts = weread
source = weread-pake-2.0.0.deb::https://github.com/tw93/Pake/releases/download/V2.0.0/WeRead_x86_64.deb
source = LICENSE.html::https://weread.qq.com/web/copyright
sha256sums = e6e2b59259d93ce86f6f3e7e8b5ff6a31a6d98c41969e279fc19f55a45f5083f
sha256sums = a92c199faf67e7ad503dc441e8ceb1d4c79f2516d3237386d27b6995daf259f8
pkgname = weread-pake

20
pkgs/weread-pake/.gitignore vendored Normal file
View File

@@ -0,0 +1,20 @@
*.tar
*.tar.*
*.jar
*.exe
*.msi
*.zip
*.tgz
*.log
*.log.*
*.sig
pkg/
src/
*.html
*.deb
weread-pake-*.pkg.tar.zst
weread-pake-*.log
*.code-workspace

26
pkgs/weread-pake/PKGBUILD Normal file
View File

@@ -0,0 +1,26 @@
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
pkgname="weread-pake"
_appname="com-tw93-weread"
pkgver=2.0.6
pkgrel=1
pkgdesc="Use Pake to package WeRead.微信读书是广州腾讯科技有限公司推出的阅读软件.为用户推荐合适的书籍,并可查看微信好友的读书动态、与好友讨论正在阅读的书籍等."
arch=('x86_64')
url="https://weread.qq.com/"
_githuburl="https://github.com/tw93/Pake"
license=(custom)
conflicts=("${pkgname%-pake}")
depends=('hicolor-icon-theme' 'gcc-libs' 'glib2' 'dbus' 'gtk3' 'gdk-pixbuf2' 'glibc' 'cairo' 'webkit2gtk' 'openssl-1.1' 'pango')
source=("${pkgname}-${pkgver}.deb::${_githuburl}/releases/download/V${pkgver}/WeRead_x86_64.deb"
"LICENSE.html::https://weread.qq.com/web/copyright")
sha256sums=('29975d621b546087fd0009144527192ee974bbb31ebe25ceeb848ea933643df3'
'5a61b33225b8bbf607f20d3b5c386faa44b9e21eaef222aaa382ebb24486391d')
package() {
bsdtar -xvf data.tar.gz -C "${pkgdir}" --gname root --uname root
install -Dm755 -d "${pkgdir}/opt/apps/${pkgname%-pake}"
mv "${pkgdir}/usr/bin/${_appname}" "${pkgdir}/opt/apps/${pkgname%-pake}/${pkgname%-pake}"
rm -rf "${pkgdir}/usr/share/applications" "${pkgdir}/usr/bin"
gendesk -f --icon "${pkgname%-pake}" --categories "Utility" --name "${pkgname%-pake}" --exec "/opt/apps/${pkgname%-pake}/${pkgname%-pake}"
install -Dm644 "${srcdir}/${pkgname%}.desktop" -t "${pkgdir}/usr/share/applications"
mv "${pkgdir}/usr/share/icons/hicolor/512x512/apps/${_appname}.png" "${pkgdir}/usr/share/icons/hicolor/512x512/apps/${pkgname%-pake}.png"
install -Dm644 "${srcdir}/LICENSE.html" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}