blob: a4aa7ce24531880d77a4a6a94821732df427bef7 (
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
|
# Maintainer: Adam Perkowski <adas1per@protonmail.com>
# https://github.com/adamperkowski/PKGBUILDs
_pkgname=arrive
pkgname=arv
pkgver=0.4.0
pkgrel=1
pkgdesc="arrive - A simple CLI tool for interacting with Advent of Code"
arch=('x86_64')
url="https://github.com/tranzystorekk/$_pkgname"
license=('MIT')
source=("$_pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('85ef5586c402c60803c4b38da044e9a25044d0ce1d1ff4e4d5979b4ce609ca6b')
makedepends=('cargo')
depends=('gcc-libs' 'openssl')
options=('!lto')
prepare() {
cd "$_pkgname-$pkgver"
cargo fetch --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd "$_pkgname-$pkgver"
export CARGO_TARGET_DIR=target
export ARRIVE_ASSETS_GEN_DIR=completions
cargo build --frozen --release --all-features
}
package() {
cd "$_pkgname-$pkgver"
install -Dm0755 "target/release/$pkgname" -t "$pkgdir/usr/bin"
install -Dm644 "$ARRIVE_ASSETS_GEN_DIR/assets/completions/$pkgname.bash" -t "$pkgdir/usr/share/bash-completion/completions"
install -Dm644 "$ARRIVE_ASSETS_GEN_DIR/assets/completions/_$pkgname" -t "$pkgdir/usr/share/zsh/site-functions"
install -Dm644 "$ARRIVE_ASSETS_GEN_DIR/assets/completions/$pkgname.fish" -t "$pkgdir/usr/share/fish/completions"
install -Dm644 "$ARRIVE_ASSETS_GEN_DIR/assets/completions/$pkgname.elv" -t "$pkgdir/usr/share/elvish/completions"
install -Dm644 "$ARRIVE_ASSETS_GEN_DIR/assets/completions/_$pkgname.ps1" -t "$pkgdir/usr/share/powershell/Modules/$pkgname/completions"
install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}
|