summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 89fc53a08e278a9d6802bd9ede04a3b252c18cf9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
pkgname=mplayer-autocmd-git
pkgver=4.r18.3157ade
pkgrel=1
pkgdesc="Per-file options and keybindings for mpv"
arch=("any")
url="https://github.com/mineo/mplayer-autocmd"
license=('unknown')
source=('git+https://github.com/mineo/mplayer-autocmd.git')
md5sums=('SKIP')
depends=('python' 'mpv')
makedepends=('git')

pkgver(){
  cd "${srcdir}/mplayer-autocmd"
  printf "%s" "$(git describe --long --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}

package() {
  cd "${srcdir}/mplayer-autocmd"
  python setup.py install --root="$pkgdir" --optimize=1
}

# vim:set ts=2 sw=2 et: