blob: 797809d6775331a8cbd627e6874b16385b7704e7 (
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
|
# Maintainer: Adrian Groh <adrian[dot]groh[at]t[dash]online[dot]de>
# Contributor: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Hoàng Văn Khải <hvksmr1996@gmail.com>
pkgname=dprint-bin
pkgver=0.51.1
pkgrel=1
pkgdesc='Pluggable and configurable code formatting platform'
arch=('x86_64' 'aarch64')
url='https://github.com/dprint/dprint'
license=('MIT')
depends=('gcc-libs')
provides=('dprint')
conflicts=('dprint')
source=('LICENSE')
source_x86_64=("$pkgname-$pkgver-x86_64.zip::$url/releases/download/$pkgver/dprint-x86_64-unknown-linux-gnu.zip")
source_aarch64=("$pkgname-$pkgver-aarch64.zip::$url/releases/download/$pkgver/dprint-aarch64-unknown-linux-gnu.zip")
sha256sums=('43f8cfbeca17eccd83fc98f27d211073eaee5574fc3162f345acc196d6190ce7')
sha256sums_x86_64=('674c1f9fcdf8a564c26cc027e080d0c4758a40a566e04a776fc83c875ad51d45')
sha256sums_aarch64=('05a0df273453f099092967641462951fd26dcad282a564f91cc4ad16ea02d526')
package() {
# generate shell completions
install -d "$pkgdir/usr/share/bash-completion/completions/" \
"$pkgdir/usr/share/elvish/lib/" \
"$pkgdir/usr/share/fish/vendor_completions.d/" \
"$pkgdir/usr/share/zsh/site-functions/"
./dprint completions bash > "$pkgdir/usr/share/bash-completion/completions/dprint"
./dprint completions elvish > "$pkgdir/usr/share/elvish/lib/dprint.elv"
./dprint completions fish > "$pkgdir/usr/share/fish/vendor_completions.d/dprint.fish"
./dprint completions zsh > "$pkgdir/usr/share/zsh/site-functions/_dprint"
install -Dv dprint -t "$pkgdir/usr/bin/"
install -Dvm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}
|