Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New package: cinny-desktop-3.2.1 #45563

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 19 additions & 0 deletions srcpkgs/cargo-tauri/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Template file for 'cargo-tauri'
pkgname=cargo-tauri
version=1.5.9
revision=1
build_wrksrc="tooling/cli"
build_style=cargo
hostmakedepends="pkg-config"
makedepends="bzip2-devel libzstd-devel"
short_desc="Command line interface for building Tauri apps"
maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
license="Apache-2.0, MIT"
homepage="https://tauri.app"
changelog="https://raw.githubusercontent.com/tauri-apps/tauri/dev/tooling/cli/CHANGELOG.md"
distfiles="https://github.com/tauri-apps/tauri/archive/refs/tags/tauri-cli-v${version}.tar.gz"
checksum=292d7ffb7ba70d34281688888532375fe90e0349eafe68ff9b74d942e6bbe30e

post_install() {
vlicense LICENSE_MIT
tranzystorekk marked this conversation as resolved.
Show resolved Hide resolved
}
51 changes: 51 additions & 0 deletions srcpkgs/cinny-desktop/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Template file for 'cinny-desktop'
pkgname=cinny-desktop
version=3.2.1
revision=1
# used for the cargo environment config
build_style=cargo
hostmakedepends="cargo-tauri nodejs pkg-config"
makedepends="dbus-devel gtk+3-devel libayatana-appindicator-devel libsoup-devel openssl-devel webkit2gtk-devel"
depends="libayatana-appindicator"
short_desc="Yet another matrix client for desktop"
maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
license="AGPL-3.0-or-later"
homepage="https://cinny.in/"
changelog="https://github.com/cinnyapp/cinny/releases"
distfiles="https://github.com/cinnyapp/cinny-desktop/releases/download/v${version}/cinny-desktop-v${version}.zip"
checksum=3f1c71737f274a948ae483ecfa7d30dda54ad24c31271bc044bda7ce35cdd26e

do_build() {
(
cd cinny
npm ci
)

cat > cargo-auditable <<'_EOF'
#!/bin/sh
exec cargo auditable --locked "$@"
_EOF
chmod +x cargo-auditable

export NODE_OPTIONS=--max_old_space_size=6144
cargo tauri build --target ${RUST_TARGET} --runner ${PWD}/cargo-auditable --bundles deb
}

do_check() {
cd src-tauri
cargo auditable test --release --locked --target ${RUST_TARGET}
}

do_install() {
local _deb_arch
case "${XBPS_TARGET_MACHINE}" in
x86_64*) _deb_arch=amd64 ;;
i686*) _deb_arch=i386 ;;
aarch64*) _deb_arch=arm64 ;;
armv*) _deb_arch=armhf ;;
esac

vbin src-tauri/target/${RUST_TARGET}/release/cinny
vcopy src-tauri/target/${RUST_TARGET}/release/bundle/deb/cinny_${version}_${_deb_arch}/data/usr/share usr/share
vlicense LICENSE
}