blob: a3e3691a6c2df9236e6449813ab357179cca603a (
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=jmcomic-downloader
pkgver=0.12.0
pkgrel=0
pkgdesc="禁漫天堂 18comic.vip jmcomic 18comic 的多线程下载器,带图形界面,已打包exe,带收藏夹,免费下载收费的漫画,下载速度飞快"
arch=($CARCH)
url="https://github.com/lanyeeee/jmcomic-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=('995b41129e0f39a384be179d2afa24bdaeb3e29ba154fab6c7f15a29dc760a21')
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=${pkgname}
Icon=${pkgname}.png
Name=${pkgname}
Terminal=false
Type=Application
EOF
}
|