blob: 68b4dd92e01dbaebbe65d4d8cecf4aa2f412f459 (
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
|
# Maintainer: Sanpi <sanpi+aur@homecomputing.fr>
# Maintainer: Caleb Maclennan <caleb@alerque.com>
pkgname=cargo-mutants
pkgver=24.11.2
pkgrel=1
pkgdesc='Mutation testing for Rust'
url="https://github.com/sourcefrog/$pkgname"
arch=(x86_64)
license=(MIT)
depends=(cargo
gcc-libs # libgcc_s.so
glibc) # libc.so libm.so
_archive="$pkgname-$pkgver"
source=("$url/archive/v$pkgver/$_archive.tar.gz")
sha256sums=('e558eaf0cd8a84f1433fe74c94c2d2f8f3e3140bd0c3005f19b4945c797a5d89')
prepare() {
cd "$_archive"
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd "$_archive"
cargo build --frozen --release
}
package() {
cd "$_archive"
install -Dm 755 -t "$pkgdir/usr/bin/" "target/release/$pkgname"
install -Dm 644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
}
|