blob: 614a7daf7d11e4d5981c6402013334cfb1328a04 (
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
|
# Maintainer: Gabriel Fontes <eu@misterio.me>
pkgname=flavours
pkgdesc='A simple and easy cli to build and use base16 schemes'
pkgver=0.4.0
pkgrel=1
arch=('any')
url='https://github.com/Misterio77/flavours'
license=('MIT')
depends=('git')
makedepends=('rust')
source=("$pkgname-${pkgver}.tar.gz::https://github.com/misterio77/flavours/archive/v${pkgver}.tar.gz")
sha256sums=('cfd063f4c05a98f1429058dba41f771922e1711f459324605cc73e846d7e16c8')
build() {
cd "$pkgname-$pkgver"
cargo build --release --locked
}
package() {
cd "$pkgname-$pkgver"
install -Dm755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 "example.toml" "$pkgdir/etc/$pkgname.conf"
#completions
install -Dm644 "completions/bash" "$pkgdir/usr/share/bash-completion/completions/$pkgname"
install -Dm644 "completions/fish" "$pkgdir/usr/share/fish/vendor_completions.d/$pkgname.fish"
install -Dm644 "completions/zsh" "$pkgdir/usr/share/zsh/site-functions/_$pkgname"
}
|