blob: ec767b648f953853017d0b0035688caabc6564bf (
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
|
# Maintainer: Wesley Moore <wes@wezm.net>
pkgname=dtool
pkgver=0.12.0
pkgrel=2
pkgdesc='A collection of development tools for numeric conversion'
arch=('i686' 'x86_64' 'aarch64')
url="https://github.com/guoxbin/dtool"
license=('GPL3')
makedepends=('cargo')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('e1a1f531f9d01dbe67416cf7ee9a8237326030e8baa311484b7d1a9ff35bd9ff')
build() {
cd "$pkgname-$pkgver"
cargo build --release --locked
}
package() {
install -Dm755 "$srcdir/$pkgname-$pkgver/target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
mkdir -p \
"$pkgdir"/usr/share/bash-completion/completions \
"$pkgdir"/usr/share/fish/vendor_completions.d \
"$pkgdir"/usr/share/zsh/site-functions
"$pkgdir/usr/bin/$pkgname" completion -s bash > "$pkgdir"/usr/share/bash-completion/completions/dtool
"$pkgdir/usr/bin/$pkgname" completion -s fish > "$pkgdir"/usr/share/fish/vendor_completions.d/dtool.fish
"$pkgdir/usr/bin/$pkgname" completion -s zsh > "$pkgdir"/usr/share/zsh/site-functions/_dtool
}
|