blob: 46c6b813ecf8c7dab57a0c18ca81e2734e328c70 (
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
|
pkgname=bin-cpuflags-x86
pkgver=1.0.3
pkgrel=1
pkgdesc='A small CLI tool to detect CPU flags (instruction sets) of X86 binaries'
arch=('x86_64' 'i686' 'aarch64')
url="https://github.com/HanabishiRecca/${pkgname}"
license=('MIT')
depends=('glibc')
makedepends=('cargo')
_snapshot="${pkgname}-${pkgver}"
source=("${url}/archive/${pkgver}/${_snapshot}.tar.gz")
sha256sums=('1389bd3b3b170e03d475c03e5b47800f550f7c9a5def5bca095a999e7d6416fc')
prepare() {
cd "${_snapshot}"
cargo fetch --locked
}
build() {
cd "${_snapshot}"
cargo build --frozen --release --target-dir "${srcdir}"
}
check() {
cd "${_snapshot}"
cargo test --frozen
}
package() {
install -Dm0755 "release/${pkgname}" -t "${pkgdir}/usr/bin"
}
|