blob: c26c71a771b46ad163f33aa98728e76fcd6427a3 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Maintainer: Rafael Dominiquini <rafaeldominiquini at gmail dot com>
_gitauthor=gnomeria
_gitname=usbtree
_appname=${_gitname}
pkgname=${_appname}
pkgdesc="Cross-platform TUI for inspecting the USB device tree"
pkgver=0.1.1
pkgrel=1
_gitversion=v${pkgver}
arch=('x86_64' 'aarch64')
_barch=('linux-amd64' 'linux-arm64')
_ghurl="https://github.com/${_gitauthor}/${_gitname}"
_ghurlraw="https://raw.githubusercontent.com/${_gitauthor}/${_gitname}/${_gitversion}"
url=${_ghurl}
license=('MIT')
provides=("${_appname}")
makedepends=('rust' 'pkgconf' 'openssl' 'libgit2')
depends=('glibc' 'libgcc')
options=(!strip)
source=("${_appname}-${pkgver}.tgz::${_ghurl}/archive/${_gitversion}.tar.gz")
sha256sums=('a315eeeb559911fffb1c2a17b6ebd418143168c888db5d3b737b05d8c34b3486')
prepare() {
cd "${pkgname}-${pkgver}/" || exit
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "${CARCH}-unknown-linux-gnu"
}
build() {
cd "${pkgname}-${pkgver}/" || exit
export CARGO_TARGET_DIR=target
cargo build --frozen --release
}
package() {
cd "${pkgname}-${pkgver}/" || exit
install -Dm755 "target/release/${_appname}" "${pkgdir}/usr/bin/${_appname}"
install -Dm644 "README.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md"
install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|