blob: 3ecb2115d51efa91a6c770677e13306b02bbcce0 (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Maintainer: taotieren <admin@taotieren.com>
pkgname=picacomic-downloader
pkgver=0.5.0
pkgrel=0
pkgdesc="哔咔漫画 picacomic pica漫画 bika漫画 PicACG 多线程下载器,带图形界面,已打包exe,带收藏夹,下载速度飞快"
arch=($CARCH)
url="https://github.com/lanyeeee/picacomic-downloader"
license=('MIT')
provides=(${pkgname})
conflicts=(${pkgname})
# replaces=(${pkgname})
depends=(
cairo
gcc-libs
gdk-pixbuf2
glib2
glibc
gtk3
hicolor-icon-theme
libsoup3
webkit2gtk-4.1
)
makedepends=(
cargo
cargo-tauri
pnpm
)
backup=()
options=(!debug !strip !lto)
#install=${pkgname}.install
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('865f5c1866a5823d3bf5c3421393073fa0218c7eec12ba172ee61764f07f5f38')
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}/src-tauri"
cargo fetch --target "$CARCH-unknown-linux-gnu"
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}/"
pnpm install
cd src-tauri
cargo build --release
# pnpm tauri build
}
# check() {
# cd "${srcdir}/${pkgname}-${pkgver}/"
# cargo test --release --all-features
# }
package() {
cd "${srcdir}/${pkgname}-${pkgver}/"
install -Dvm755 src-tauri/target/release/${pkgname} -t ${pkgdir}/usr/bin
install -Dvm644 src-tauri/icons/icon.png ${pkgdir}/usr/share/icons/hicolor/512x512/apps/${pkgname}.png
install -Dvm644 /dev/stdin ${pkgdir}/usr/share/applications/${pkgname}.desktop <<EOF
[Desktop Entry]
Categories=
Comment=${pkgdesc}
Exec=picacomic-downloader
Icon=picacomic-downloader.png
Name=picacomic-downloader
Terminal=false
Type=Application
EOF
}
|