blob: 24a6c41e0ee4119c31c022b89dd9ea80323d5f13 (
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
|
# Maintainer: Johannes Schöpp <darkdiscover at gmail dot com>
# Contributor: Luis Martinez <luis dot martinez at disroot dot org>
pkgname=evtx
pkgver=0.9.0
pkgrel=1
pkgdesc="Cross-platform parser for Windows XML EventLog Format"
arch=('x86_64')
url="https://github.com/omerbenamram/evtx"
license=('MIT' 'Apache-2.0')
depends=('gcc-libs' 'glibc')
makedepends=('cargo')
changelog=CHANGELOG.md
options=('!lto')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('c9e827afd315c235873b6848a9c7ced0d5434225e1af391f8c9c66b63d7349ad')
prepare() {
cd "$pkgname-$pkgver"
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
build() {
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cd "$pkgname-$pkgver"
## must be --locked because not all dependencies are downloaded at this point
cargo build --locked --release --all-features
}
check() {
export RUSTUP_TOOLCHAIN=stable
cd "$pkgname-$pkgver"
cargo test --frozen --all-features || echo ':: Warning: tests failed'
}
package() {
cd "$pkgname-$pkgver"
install -Dvm755 target/release/evtx_dump -t "$pkgdir/usr/bin/"
install -Dvm644 LICENSE-{APACHE,MIT} -t "$pkgdir/usr/share/licenses/$pkgname/"
install -Dvm644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
}
|