blob: a4b73d95958b5b0a5a906280c5bfa9df5f871229 (
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
|
pkgname=waymeet-git
pkgver=r8.f9c89e9
pkgrel=1
pkgdesc="Linux calendar CLI/daemon for Google Calendar and CalDAV with terminal/Waybar output"
arch=('x86_64')
url="https://github.com/chmouel/waymeet"
license=('Apache-2.0')
# ring doesn't work with LTO
options=(!lto)
depends=(
'glibc'
'libgcc'
)
makedepends=(
'cargo'
'git'
)
source=("git+https://github.com/chmouel/waymeet.git")
sha256sums=('SKIP')
pkgver(){
cd waymeet
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}
prepare() {
cd waymeet
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target host-tuple
}
build() {
cd waymeet
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release --all-features
}
check() {
cd waymeet
export RUSTUP_TOOLCHAIN=stable
cargo test --frozen --all-features --workspace
}
package() {
cd waymeet
install -Dm755 "target/release/waymeet" -t "$pkgdir/usr/bin"
install -Dm644 README.md DESIGN.md -t "$pkgdir/usr/share/doc/waymeet"
install -Dm644 config.example.toml -t "$pkgdir/usr/share/doc/waymeet"
install -Dm644 systemd/waymeet.service -t "$pkgdir/usr/lib/systemd/user"
}
|