summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f04c52352814995aceac7aa4f9e5f61a0625d193 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

# Maintainer: Andrea Feletto <andrea@andreafeletto.com>

pkgname=pandoc-completion
pkgver=2.11
pkgrel=2
pkgdesc='Bash completion for pandoc.'
arch=('x86_64')
url='https://pandoc.org'
license=('GPL')
depends=('pandoc')
source=('pandoc-completion.hook')
sha256sums=('85b6319bf02d1c60a99cfe8ceba1e887d5ede3cc6774082abd8c67230b3f4c57')

package() {
	completion="$pkgdir/etc/bash_completion.d"

	cd "$srcdir"
	install -d "$completion"
	pandoc --bash-completion > "$completion/pandoc-completion.bash"
	install -Dm644 pandoc-completion.hook -t "$pkgdir/etc/pacman.d/hooks"
}