Package Details: clash-nyanpasu-git pre.release.r14.g521324da-2

Git Clone URL: https://aur.archlinux.org/clash-nyanpasu-git.git (read-only, click to copy)
Package Base: clash-nyanpasu-git
Description: A Clash GUI based on tauri.
Upstream URL: https://github.com/LibNyanpasu/clash-nyanpasu
Keywords: clash clash-nyanpasu nyanpasu
Licenses: GPL-3.0-or-later
Conflicts: clash-nyanpasu
Provides: clash-nyanpasu, clash-nyanpasu-git
Submitter: Kimiblock
Maintainer: Kimiblock
Last Packager: Kimiblock
Votes: 4
Popularity: 0.34
First Submitted: 2023-11-14 10:31 (UTC)
Last Updated: 2024-04-25 16:08 (UTC)

Latest Comments

Kimiblock commented on 2024-04-25 15:58 (UTC)

@TinyPower Thanks. Please test the new PKGBUILD

TinyPower commented on 2024-04-25 15:29 (UTC)

Hello,
src/assets/image/logo.svg has been changed to frontend/nyanpasu/src/assets/image/logo.svg.
Please fix, thank you.

a632079 commented on 2024-02-14 17:42 (UTC) (edited on 2024-02-14 17:43 (UTC) by a632079)

Hello,

I wanted to inform you that the development branch has been updated to main. Additionally, to bump the version of the development build, it's now necessary to run pnpm prepare:nightly.

Furthermore, yarn is no longer a required dependency and can be safely removed.

Lastly, could you please clarify the process for updating this package after commits are pushed?

Thank you.

Kimiblock commented on 2024-02-13 13:43 (UTC)

  • mihomo is clash-meta
  • clash-meta is in the archlinuxcn repo

wustdsh commented on 2024-02-13 09:13 (UTC) (edited on 2024-02-13 09:13 (UTC) by wustdsh)

Why not just use mihomo as dependency

heddxh commented on 2023-12-20 02:47 (UTC) (edited on 2023-12-20 02:47 (UTC) by heddxh)

Should add pnpm as make dependency?

Kimiblock commented on 2023-12-17 06:42 (UTC)

Upstream changed clash-meta executable to mihomo. In order to fix this package, clash-meta-is-mihomo is now added as a dependency.

Please note that this package and clash-meta-is-mihomo is not compatible with the mihomo package at all.

detian commented on 2023-11-30 13:06 (UTC)

PKGBUILD suggestion

pkgname=clash-nyanpasu-git
_pkgname=clash-nyanpasu
pkgver=r1102.4015cb3
pkgrel=1
pkgdesc="A Clash GUI based on tauri."
arch=('x86_64' 'aarch64')
url="https://github.com/keiko233/clash-nyanpasu"
license=('GPL3')
depends=('webkit2gtk' 'clash-geoip' 'libayatana-appindicator')
optdepends=(
    'clash-meta: use Clash core'
    'clash-meta: use Clash.Meta core'
    'clash-rs: use ClashRT core')
makedepends=('pnpm' 'cargo-tauri' 'jq' 'moreutils' 'rust' 'quickjs')
source=("git+https://github.com/keiko233/clash-nyanpasu.git#branch=dev"
    "${_pkgname}.desktop"
)
provides=(clash-nyanpasu-git clash-nyanpasu)
conflicts=(clash-nyanpasu)

sha512sums=('SKIP' 'SKIP')
options=(!lto)

function pkgver() {
    cd "${srcdir}/clash-nyanpasu"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
function prepare(){
    system_clashpath=$(which clash || which clash-meta || which clash-rs || false)

    if [[ -z $system_clashpath ]]; then
        echo no any of clash found, you need install at least one of "clash" "clash-meta" "clash-rs", aborting...
        exit 1
    fi

    cd "${srcdir}/clash-nyanpasu"

    install -d src-tauri/sidecar
    ln -sf "$system_clashpath" "src-tauri/sidecar/clash-${CARCH}-unknown-linux-gnu"
    ln -sf "$system_clashpath" "src-tauri/sidecar/clash-meta-${CARCH}-unknown-linux-gnu"
    ln -sf "$system_clashpath" "src-tauri/sidecar/clash-rs-${CARCH}-unknown-linux-gnu"

    install -d src-tauri/resources
    ln -sf /etc/clash/Country.mmdb src-tauri/resources/Country.mmdb
    jq 'del(.scripts.prepare)' package.json|sponge package.json

    cd src-tauri
    # only build the excutable
    jq '.tauri.bundle.active = false' tauri.conf.json|sponge tauri.conf.json
    # disable updater
    jq '.tauri.updater.active = false' tauri.conf.json|sponge tauri.conf.json
}

function build(){
    cd "${srcdir}/clash-nyanpasu"
    # export HOME=$srcdir
    export RUSTFLAGS="-L /usr/lib/quickjs"
    pnpm install
    pnpm run check
    cargo-tauri build
}
package(){
    cd "${srcdir}/clash-nyanpasu"
    install -Dm755 "src-tauri/target/release/${_pkgname}" -t "${pkgdir}/usr/bin"

    install -d "${pkgdir}/usr/lib/${_pkgname}/resources"
    ln -sf /etc/clash/Country.mmdb -t "${pkgdir}/usr/lib/${_pkgname}/resources"

    install -Dm644 src/assets/image/logo.svg "${pkgdir}/usr/share/icons/hicolor/scalable/apps/${_pkgname}.svg"

    install -Dm644 "${srcdir}/${_pkgname}.desktop" -t "${pkgdir}/usr/share/applications"

}