blob: 57b1bcdf566c46839a4c5858e1c7aa2630295e20 (
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
|
# Maintainer: Hoàng Văn Khải <hvksmr1996@gmail.com>
# This file is automatically generated. Do not edit.
pkgname=strip-ansi
pkgver=0.1.0
source=(strip-ansi-0.1.0.tar.gz::https://github.com/KSXGitHub/strip-ansi-cli/archive/0.1.0.tar.gz)
sha1sums=(SKIP)
# This PKGBUILD is not a full PKGBUILD
# pkgname, pkgver, source, and sha1sums are to be generated
pkgdesc='Strip ANSI escape sequences from text'
pkgrel=1
arch=(x86_64)
license=(MIT)
url='https://github.com/KSXGitHub/strip-ansi-cli'
makedepends=(cargo)
build() {
cd "$srcdir/strip-ansi-cli-$pkgver"
cargo build --release --locked
}
package() {
cd "$srcdir/strip-ansi-cli-$pkgver"
install -Dm755 target/release/strip-ansi "$pkgdir/usr/bin/strip-ansi"
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
install -Dm644 exports/completion.bash "$pkgdir/usr/share/bash-completion/completions/strip-ansi"
install -Dm644 exports/completion.fish "$pkgdir/usr/share/fish/completions/strip-ansi.fish"
install -Dm644 exports/completion.zsh "$pkgdir/usr/share/zsh/site-functions/_strip-ansi"
}
|