blob: 9b16b7f2b0045ef42801c4fdc1b7d94dce00e185 (
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
55
|
# -*- mode: sh -*-
# Maintainer: Klaus Alexander Seistrup <$(echo 0x1fd+d59decfa=40 | tr 0-9+a-f=x ka-i@p-u.l)>
_pkgname='attempt'
pkgname="$_pkgname-git"
pkgver=1.0.1.r0.gc083e94
pkgrel=1
pkgdesc='CLI tool for retrying fallible commands (development version)'
arch=('aarch64' 'x86_64')
license=('Unlicense') # SPDX-License-Identifier: Unlicense
depends=('gcc-libs' 'glibc')
makedepends=('cargo' 'git')
url='https://github.com/MaxBondABE/attempt'
source=("git+$url.git")
provides=("$_pkgname")
conflicts=("${provides[@]}")
sha256sums=('SKIP')
prepare() {
cd "$_pkgname"
#git clean -dfx
}
pkgver() {
cd "$_pkgname"
git describe --tags --long \
| sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$_pkgname"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --release --all-features
}
package() {
cd "$_pkgname"
install -vDm0755 -t "$pkgdir/usr/bin" "target/release/$_pkgname"
install -vDm0644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
cd docs/src && \
for _dir in *; do
test -d "$_dir" || continue
install -vDm0644 -t "$pkgdir/usr/share/doc/$pkgname/docs/$_dir" "$_dir"/*.md
done
install -vDm0644 -t "$pkgdir/usr/share/doc/$pkgname/docs" ./*.md
}
# eof
|