summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 904283562408147f4c597352dbc52fdea3cf66e0 (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
# Maintainer: Ian D, Scott <ian@perebruin.com>
# Contributor: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>

pkgname=python-pympv-git
pkgver=r109.07f27d1
pkgrel=1
pkgdesc="A python wrapper for libmpv."
arch=('i686' 'x86_64')
url="https://github.com/marcan/pympv"
license=('gpl')
depends=('python' 'mpv')
makedepends=('cython')
provides=('python-pympv')
conflicts=('python-pympv' 'python-mpv' 'python-mpv-git')
source=('git://github.com/marcan/pympv.git')
md5sums=('SKIP')
_gitname="pympv"

pkgver () {
  cd $srcdir/$_gitname
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$srcdir/$_gitname"
  python setup.py build
}

package() {
  cd "$srcdir/$_gitname"
  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
  install -Dm644 "README.md" "$pkgdir/usr/share/doc/$pkgname/README.md"
}