blob: 5dcd28a06100293786effe2d00384ab24ddc6139 (
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
|
# Contributor: mcp <mcp@praeger.org>
pkgname=tztail-git
pkgver=1.2.0.r4.g6c94e13
pkgrel=1
pkgdesc='Allows you to view logs in the timezone you want'
arch=('x86_64')
url='https://github.com/thecasualcoder/tztail'
license=('MIT')
depends=('gcc-libs')
makedepends=('git' 'cargo')
provides=('tztail')
conflicts=('tztail')
source=("$pkgname::git+$url.git")
sha256sums=('SKIP')
pkgver() {
cd "$pkgname"
git describe --long --tags | sed 's/-/.r/;s/-/./g';
}
prepare() {
cd "$pkgname"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd "$pkgname"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release
}
package() {
cd "$pkgname"
install -Dm755 -t "$pkgdir/usr/bin/" "target/release/tztail"
install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE-MIT
}
|