blob: b2fddabb69469a5d9b7f68949b4dd9bddefbefe2 (
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.53.0
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=('987185f5f0db6205e5bca88aaab04a7b29bc18bf7a8c1a84f56eef08c9730df0')
sha256sums_aarch64=('a2ee78eb991e9fa7fc3cb203a5a086cb5590003b1aa6ad1bf6730df68b4124a5')
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/"
}
|