blob: 971bbfe87db9bf0eaadd995c3f9742a287834c6a (
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
56
57
58
59
60
61
62
63
64
|
# Contributor: Frederic Bezies < fredbezies at gmail dot com >
# Contributor: Minzord
# Maintainer: Colin Woodbury <colin@fosskers.ca>
pkgname="aura-git"
pkgver=4.0.8.r0.g446c12e
pkgrel=1
pkgdesc="A package manager for Arch Linux and its AUR"
arch=("x86_64")
url="https://github.com/fosskers/aura"
license=("GPL-3.0-or-later")
depends=("git" "curl" "openssl" "gcc-libs" "glibc")
makedepends=("cargo")
optdepends=(
"bash-completion: for bash completions"
"bat: more featureful file viewing"
"fd: faster filesystem traversal"
"graphviz: dependency graph generation"
"ripgrep: faster log searches"
"shellcheck: PKGBUILD scanning"
"xdg-utils: for xdg-open"
)
provides=("aura")
conflicts=("aura" "aura-bin" "aura3-bin")
replaces=()
options=("strip")
source=("${pkgname}"::"git+https://github.com/fosskers/aura.git")
sha256sums=('SKIP')
pkgver() {
cd "${pkgname}"
git describe --long --tags --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "${pkgname}/rust"
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd "${pkgname}/rust"
export CARGO_TARGET_DIR=target
cargo build --frozen --release
# Build the `info` page.
cd "../misc"
makeinfo aura.texi
}
package() {
cd "${pkgname}"
# Install binary
install -Dm0755 -t "$pkgdir/usr/bin/" "rust/target/release/aura"
# Install man and info pages
install -Dm644 "misc/aura.8" "${pkgdir}/usr/share/man/man8/aura.8"
install -Dm644 "misc/aura.info" "${pkgdir}/usr/share/info/aura.info"
# Install completions
install -Dm644 "misc/completions/bashcompletion.sh" "${pkgdir}/usr/share/bash-completion/completions/aura"
install -Dm644 "misc/completions/_aura" "${pkgdir}/usr/share/zsh/site-functions/_aura"
install -Dm644 "misc/completions/aura.fish" "${pkgdir}/usr/share/fish/vendor_completions.d/aura.fish"
}
|