GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Moku/packaging/moku/PKGBUILD at main · LeafGithub/Moku

Expand file tree

/

PKGBUILD

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
89 lines (79 loc) · 3.2 KB
/

PKGBUILD

Copy path

File metadata and controls

89 lines (79 loc) · 3.2 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# Maintainer: Moku Project <https://github.com/moku-project/Moku>
# Builds Moku (Tauri desktop app) from the latest tagged release, bundled
# with the Tsunagu backend as a hard dependency so the app works out of the
# box. For a backend-less build (e.g. pointing at a remote/self-hosted
# Tsunagu instance) see moku-nobackend-git instead.
pkgname=moku
pkgver=0.14.1
pkgrel=1
pkgdesc='Reader and player for manga, light novels, and anime, bundled with the Tsunagu backend'
arch=('x86_64' 'aarch64')
url='https://github.com/moku-project/Moku'
license=('MIT')
depends=(
'tsunagu>=0.6.0'
'webkit2gtk-4.1'
'gtk3'
'glib-networking'
'libappindicator-gtk3'
'openssl'
'gst-plugins-base'
'gst-plugins-good'
'gst-libav'
'hicolor-icon-theme'
)
makedepends=('rust' 'nodejs' 'pnpm' 'pkgconf')
optdepends=(
'gst-plugins-bad: extra video/audio codecs'
'gst-plugins-ugly: extra video/audio codecs'
)
provides=('moku')
conflicts=('moku-git' 'moku-nobackend-git')
source=("$pkgname-$pkgver.tar.gz::https://github.com/moku-project/Moku/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('SKIP')
options=('!lto')
prepare() {
cd "Moku-$pkgver"
export CARGO_HOME="$srcdir/cargo-home"
pnpm install --frozen-lockfile
# package.json's "prepare" script swallows failures (`|| echo ''`), so a
# sandboxed/scriptless install can silently skip it and leave
# .svelte-kit/tsconfig.json missing, which breaks the later vite build.
# Run it explicitly so a real failure here is loud.
pnpm exec svelte-kit sync
cargo fetch --locked --manifest-path src-tauri/Cargo.toml \
--target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd "Moku-$pkgver"
export CARGO_HOME="$srcdir/cargo-home"
export CARGO_NET_OFFLINE=true
export RUSTUP_TOOLCHAIN=stable
# No bundling, and null out the sidecar resources - a clean checkout has no
# src-tauri/resources/tsunagu, and the config parser rejects the missing
# path otherwise (mirrors nix/moku.nix). The real tsunagu binary comes from
# the tsunagu package dependency instead, via the wrapper below.
pnpm exec tauri build --no-bundle --config '{"bundle":{"resources":null}}'
}
package() {
cd "Moku-$pkgver"
install -Dm755 src-tauri/target/release/moku "$pkgdir/usr/lib/moku/moku"
install -Dm755 /dev/stdin "$pkgdir/usr/bin/moku" <<'EOF'
#!/bin/sh
export TSUNAGU_BIN="${TSUNAGU_BIN:-/usr/bin/tsunagu}"
exec /usr/lib/moku/moku "$@"
EOF
install -Dm644 packaging/io.github.MokuProject.Moku.desktop \
"$pkgdir/usr/share/applications/io.github.MokuProject.Moku.desktop"
install -Dm644 packaging/io.github.MokuProject.Moku.metainfo.xml \
"$pkgdir/usr/share/metainfo/io.github.MokuProject.Moku.metainfo.xml"
install -Dm644 src-tauri/icons/32x32.png \
"$pkgdir/usr/share/icons/hicolor/32x32/apps/io.github.MokuProject.Moku.png"
install -Dm644 src-tauri/icons/64x64.png \
"$pkgdir/usr/share/icons/hicolor/64x64/apps/io.github.MokuProject.Moku.png"
install -Dm644 src-tauri/icons/128x128.png \
"$pkgdir/usr/share/icons/hicolor/128x128/apps/io.github.MokuProject.Moku.png"
install -Dm644 src-tauri/icons/[email protected] \
"$pkgdir/usr/share/icons/hicolor/256x256/apps/io.github.MokuProject.Moku.png"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.