blob: 10679cf58902652fd4811a76175f353a45cc2380 (
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
|
pkgname=bin-cpuflags-x86
pkgver=1.0.2
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')
makedepends=('cargo')
_snapshot="${pkgname}-${pkgver}"
source=("${_snapshot}.tar.gz::${url}/archive/${pkgver}.tar.gz")
sha256sums=('575316d9146a85696ccda96c93989f72be57863e2234bc7face2bf116c80a6de')
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"
}
|