blob: 70bffab7848d9e2a42e9145028c260618aa1982d (
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
|
# Maintainer: Jonas Malaco <jonas@protocubo.io>
pkgname=post-clock
pkgver=0.1.1
pkgrel=1
pkgdesc='A clock using the POST codes display'
arch=('x86_64' 'i686')
url='https://github.com/jonasmalacofilho/post-clock'
license=('Unlicense')
depends=(
cargo
gcc-libs
glibc
)
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('ac0770ef404723cf4afb603f2c5a15a8f5611b10b1c81ba9f69d1431b7eb80d3')
prepare() {
cd "$pkgname-$pkgver"
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
build() {
cd "$pkgname-$pkgver"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release
}
check() {
cd "$pkgname-$pkgver"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo test --frozen
}
package() {
cd "$pkgname-$pkgver"
install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname"
install -Dm0644 -t "$pkgdir/usr/lib/systemd/system/" "$pkgname.service"
}
|