diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2015-08-18 19:39:53 +0200 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2015-08-20 11:12:26 +0000 |
commit | 8d1c52cec7ea0eebe76e66f0e81950949dcde6b2 (patch) | |
tree | d5aa611e1ac32d047faf9c538908116b56f4397b | |
parent | ce636e6686b051fb21a68dac5fac771c9fe93b5f (diff) | |
download | aports-8d1c52cec7ea0eebe76e66f0e81950949dcde6b2.tar.bz2 aports-8d1c52cec7ea0eebe76e66f0e81950949dcde6b2.tar.xz |
main/mpv: enable zsh completions
-rw-r--r-- | main/mpv/APKBUILD | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/main/mpv/APKBUILD b/main/mpv/APKBUILD index cf64ec7a7c..7b52930114 100644 --- a/main/mpv/APKBUILD +++ b/main/mpv/APKBUILD @@ -1,9 +1,10 @@ +# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net> # Contributor: Łukasz Jendrysik <scadu@yandex.com> # Contributor: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=mpv pkgver=0.9.2 -pkgrel=1 +pkgrel=2 pkgdesc="Video player based on MPlayer/mplayer2" url="http://mpv.io/" arch="all" @@ -15,7 +16,10 @@ makedepends="libxxf86dga-dev libxv-dev libmad-dev lame-dev libao-dev mesa-dev ffmpeg-dev libass-dev perl lua5.2-dev libvdpau-dev python libxext-dev libxscrnsaver-dev py-docutils" install="" -subpackages="$pkgname-doc $pkgname-libs" +subpackages=" + $pkgname-doc + $pkgname-libs + $pkgname-zsh-completion:zshcomp" source="$pkgname-$pkgver.tar.gz::https://github.com/mpv-player/mpv/archive/v$pkgver.tar.gz " @@ -38,6 +42,7 @@ build() { --confdir=/etc/mpv \ --enable-libmpv-shared \ --enable-libass \ + --enable-zsh-comp \ --enable-xss \ || return 1 @@ -61,6 +66,17 @@ package() { "$pkgdir"/usr/share/doc/mpv/examples || return 1 } +zshcomp() { + depends="" + pkgdesc="Zsh completions for $pkgname" + install_if="$pkgname=$pkgver-r$pkgrel zsh" + arch="noarch" + + mkdir -p "$subpkgdir/usr/share/zsh/site-functions" + mv "$pkgdir/usr/share/zsh/site-functions"/* \ + "$subpkgdir/usr/share/zsh/site-functions" || return 1 +} + md5sums="ed1384e703f7032e531731842e4da4f7 mpv-0.9.2.tar.gz" sha256sums="c0148f55dbd17705f49bb496d0ce374419de62e1b17195d91409d7727cbd4751 mpv-0.9.2.tar.gz" sha512sums="4f652a8e78d65b0ef44a06287b05250dfdfbce4cf5a6e21d3b446eedec268d83cf98afcc687272e2da2cfac9e9f69a303847dffdfd45cecdd4273b943ce50967 mpv-0.9.2.tar.gz" |