mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-11 22:36:37 +02:00
51 lines
1.3 KiB
Text
51 lines
1.3 KiB
Text
# Maintainer: Celeste <cielesti@protonmail.com>
|
|
maintainer="Celeste <cielesti@protonmail.com>"
|
|
pkgname=gossip
|
|
pkgver=0.14.0
|
|
pkgrel=0
|
|
pkgdesc="Desktop client for Nostr"
|
|
url="https://github.com/mikedilger/gossip"
|
|
# armhf, armv7, x86: arithmetic operation overflow
|
|
arch="all !armhf !armv7 !x86"
|
|
license="MIT"
|
|
makedepends="
|
|
cargo
|
|
cargo-auditable
|
|
openssl-dev
|
|
"
|
|
subpackages="$pkgname-doc"
|
|
source="https://github.com/mikedilger/gossip/archive/v$pkgver/gossip-$pkgver.tar.gz"
|
|
|
|
_cargo_opts="--frozen --no-default-features --features=native-tls,lang-cjk"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
cargo fetch --target="$CTARGET" --locked
|
|
}
|
|
|
|
build() {
|
|
RUSTFLAGS="--cfg=tokio_unstable" \
|
|
cargo auditable build $_cargo_opts --release
|
|
}
|
|
|
|
check() {
|
|
RUSTFLAGS="--cfg=tokio_unstable" \
|
|
cargo test $_cargo_opts
|
|
}
|
|
|
|
package() {
|
|
install -Dvm755 target/release/gossip -t "$pkgdir"/usr/bin/
|
|
|
|
install -Dvm644 logo/gossip.svg \
|
|
-t "$pkgdir"/usr/share/icons/hicolor/scalable/apps/
|
|
install -Dvm644 packaging/debian/gossip.desktop \
|
|
-t "$pkgdir"/usr/share/applications/
|
|
|
|
install -Dvm644 docs/*.md -t "$pkgdir"/usr/share/doc/$pkgname/
|
|
install -Dvm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/
|
|
}
|
|
|
|
sha512sums="
|
|
f7f08c378ad17007015860dd6a0732000b0f527d978dc1706953fa753ba92341711c4b687c63b382c6c2fb1a782b70d8fd0b14926de1e32ff2085a17bde9b02c gossip-0.14.0.tar.gz
|
|
"
|