Skip to content
Snippets Groups Projects
Verified Commit 0bac7df9 authored by Frederik Schwan's avatar Frederik Schwan
Browse files

upgpkg: 0.3.2-1

parents
No related branches found
Tags 0.3.2-1
No related merge requests found
.SRCINFO 0 → 100644
pkgbase = tbtools
pkgdesc = Collection of tools for Linux Thunderbolt/USB4 development, debugging and validation
pkgver = 0.3.2
pkgrel = 1
url = https://github.com/intel/tbtools
arch = x86_64
license = MIT
makedepends = git
makedepends = rust
depends = gcc-libs
depends = glibc
depends = systemd-libs
source = git+https://github.com/intel/tbtools.git#tag=v0.3.2
b2sums = 775847bba2099c7b913e303a62ef049856d02f65630e62352dc620586a3ed997388656775c29d83599170495b2920db4ea83155f98834d5a6b224c000ec60422
pkgname = tbtools
PKGBUILD 0 → 100644
# Maintainer: Frederik Schwan <freswa at archlinux dot org>
pkgname=tbtools
pkgver=0.3.2
pkgrel=1
pkgdesc='Collection of tools for Linux Thunderbolt/USB4 development, debugging and validation'
arch=('x86_64')
url='https://github.com/intel/tbtools'
license=('MIT')
depends=(
'gcc-libs'
'glibc'
'systemd-libs'
)
makedepends=(
'git'
'rust'
)
source=("git+https://github.com/intel/tbtools.git#tag=v$pkgver")
b2sums=('775847bba2099c7b913e303a62ef049856d02f65630e62352dc620586a3ed997388656775c29d83599170495b2920db4ea83155f98834d5a6b224c000ec60422')
prepare() {
cd ${pkgname}
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd ${pkgname}
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --release --locked
}
package() {
cargo install --locked --root "${pkgdir}"/usr --path "${srcdir}"/${pkgname}
rm "${pkgdir}"/usr/{.crates.toml,.crates2.json}
install -Dm644 "${pkgname}"/LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment