summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1d05acc3e6b376fe4fa492bab764cbe8352cb1a1 (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: Jens John <dev@2ion.de>
pkgname=mpv-bash-completion-git
pkgver=3.3.18
epoch=8
pkgrel=1
pkgdesc="Bash completion for the mpv video player"
arch=('any')
url="https://github.com/2ion/mpv-bash-completion"
license=('GPL')
depends=('mpv' 'bash' 'lua')
optdepends=('xorg-xrandr: dynamic detection of valid screen resolutions (X11, xwayland)')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
install=mpv-bash-completion.install
source=('git+https://github.com/2ion/mpv-bash-completion.git#branch=master'\
  'mpv-bash-completion.hook'\
  'mpv-bash-completion.install')
sha256sums=('SKIP'\
  '2bb01148863811ac4b4cedc19a89e421bdc1c289d38e97024c8cda3658110727'
  '1b966b8cb521cce44fa8cc9c197d5d9b9f3f36481c40ce4003c81edad7de092c')

package() {
  cd "$srcdir/${pkgname%-git}"
  install -dm755 "${pkgdir}/etc/bash_completion.d"
  install -Dm755 gen.lua "${pkgdir}/usr/lib/mpv-bash-completion/generate"
  cd "$srcdir"
  install -Dm644 mpv-bash-completion.hook "${pkgdir}/usr/share/libalpm/hooks/mpv-bash-completion.hook"
}