blob: 893a7db136dfe08e18ae9decf1d5692cc5939e16 (
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
|
# Maintainer: Pando85 <pando855@gmail.com>
pkgname=timer-rs
pkgver=0.8.2
pkgrel=1
pkgdesc="Simple countdown terminal alarm"
arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
url="https://github.com/pando85/timer"
license=('GPL')
depends=('gcc-libs'
'pkg-config'
'alsa-lib')
makedepends=('cargo'
'git')
source=("git+$url.git#tag=v${pkgver}?signed")
validpgpkeys=('CD1DB60B2C8465FD50028EF6D381D73787B45B3E')
sha512sums=('SKIP')
prepare() {
cd "$srcdir/timer"
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
build() {
cd "$srcdir/timer"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release --all-features
}
check() {
cd "$srcdir/timer"
export RUSTUP_TOOLCHAIN=stable
cargo test --frozen --all-features
}
package() {
cd "$srcdir/timer"
install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/timer"
}
|