blob: 0a10757b3323e0040b2dac50ec54dec60018271e (
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
|
# Maintainer: Frédéric Logier <fredix@protonmail.com>
_name=notedeck
pkgname=notedeck-git
pkgver=0.2.0.r0.g575d469
pkgrel=1
epoch=
pkgdesc=" A multiplatform nostr client "
arch=('x86_64' 'aarch64')
url="https://github.com/damus-io/notedeck"
license=('GPL-3')
groups=()
makedepends=(
'git'
'rust'
)
checkdepends=()
optdepends=()
provides=("${_name}")
conflicts=("${_name}")
replaces=()
backup=()
options=('!lto')
install=
changelog=
source=('git+https://github.com/damus-io/notedeck.git')
noextract=()
sha256sums=("SKIP")
validpgpkeys=()
pkgver() {
cd "$srcdir/notedeck"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "$srcdir/notedeck"
export CARGO_HOME="$srcdir/cargo-home"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd "$srcdir/notedeck"
export CARGO_HOME="$srcdir/cargo-home"
export RUSTUP_TOOLCHAIN=stable
cargo build --release
}
check() {
cd "$srcdir/notedeck"
export CARGO_HOME="$srcdir/cargo-home"
export RUSTUP_TOOLCHAIN=stable
cargo check --release --bin notedeck
}
package() {
cd "$srcdir/notedeck/target/release/"
install -Dm755 --no-target-directory "notedeck" "${pkgdir}/usr/bin/${_name}"
}
|