blob: db47251729d2b162d4f267b3d0e972261df6c195 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
pkgname=pakeplus-bin
_pkgname=PakePlus
pkgver=0.5.22
pkgrel=1
pkgdesc="Turn any webpage into a desktop app and mobile app with Rust.(Prebuilt version)利用 Rust 轻松构建轻量级(仅5M)多端桌面应用和多端手机应用"
arch=('x86_64')
url="https://sjj1024.github.io/PakePlus/"
_ghurl="https://github.com/Sjj1024/PakePlus"
license=('LicenseRef-unknown')
provides=("${pkgname%-bin}=${pkgver}")
conflicts=("${pkgname%-bin}")
depends=(
'gtk3'
'gdk-pixbuf2'
'webkit2gtk-4.1'
)
source=(
"${pkgname%-bin}-${pkgver}.rpm::${_ghurl}/releases/download/${_pkgname}-v${pkgver}/${_pkgname}-${pkgver}-1.${CARCH}.rpm"
)
sha256sums=('8792b8e760d21f269a197e7c51a5db4b67ba79e71ec392a27932d0f96a820dc9')
prepare() {
sed -i -e "
s/Comment=A Tauri App/Comment=${pkgdesc}/g
s/Categories=/Categories=Utility;/g
s/Exec=${_pkgname}/Exec=${pkgname%-bin}/g
s/Icon=${_pkgname}/Icon=${pkgname%-bin}/g
" "${srcdir}/usr/share/applications/${_pkgname}.desktop"
}
package() {
install -Dm755 "${srcdir}/usr/bin/${_pkgname}" "${pkgdir}/usr/bin/${pkgname%-bin}"
cp -Pr --no-preserve=ownership "${srcdir}/usr/lib" "${pkgdir}/usr"
_icon_sizes=(32x32 128x128 256x256@2)
for _icons in "${_icon_sizes[@]}";do
install -Dm644 "${srcdir}/usr/share/icons/hicolor/${_icons}/apps/${_pkgname}.png" \
"${pkgdir}/usr/share/icons/hicolor/${_icons//@2/}/apps/${pkgname%-bin}.png"
done
install -Dm644 "${srcdir}/usr/share/applications/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname%-bin}.desktop"
}
|