blob: e3a84449d4f2571716cbca039fef205282f853c0 (
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
|
# Maintainer: Michał Wojdyła < micwoj9292 at gmail dot com >
pkgname=flipperbit
pkgver=0.1.3
pkgrel=5
pkgdesc='Corrupted files generator. Random bits flipper.'
url='https://crates.io/crates/flipperbit'
arch=('x86_64')
license=('GPL-3.0-only')
depends=('gcc-libs' 'glibc')
makedepends=('cargo')
source=("$pkgname-$pkgver.tar.gz::https://static.crates.io/crates/$pkgname/$pkgname-$pkgver.crate")
b2sums=('8a7bb4ed94a7ba48e084f479b3beffc293b609975d740473d74cde233d31b31a08ad61b2257593a1736f7bc7dd82da14258ffc86de104c624468274c8eaa5980')
prepare() {
cd $pkgname-$pkgver
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
build() {
cd $pkgname-$pkgver
RUSTFLAGS='-C link-args=-Wl,-z,shstk' cargo build --frozen --release --all-features
}
check() {
cd $pkgname-$pkgver
RUSTFLAGS='-C link-args=-Wl,-z,shstk' cargo test --frozen --all-features
}
package() {
cd $pkgname-$pkgver
install -Dm 755 -t "${pkgdir}/usr/bin" \
target/release/flipperbit
}
|