community/mpv to 41859.gf1778d1f-1

This commit is contained in:
Kevin Mihelich 2015-08-28 12:10:23 +00:00
parent 153b197b74
commit a191039bb2

View file

@ -7,8 +7,9 @@
# - armv7 needs to be built with fPIC
pkgname=mpv
pkgver=0.9.2
pkgrel=2
_commit=f1778d1f
pkgver=41859.gf1778d1f
pkgrel=1
pkgdesc='Video player based on MPlayer/mplayer2'
arch=('i686' 'x86_64')
license=('GPL')
@ -23,17 +24,23 @@ makedepends=('mesa' 'python-docutils' 'ladspa' 'hardening-wrapper')
optdepends=('youtube-dl: for video-sharing websites playback')
options=('!emptydirs' '!buildflags')
install=mpv.install
source=("$pkgname-$pkgver.tar.gz::https://github.com/mpv-player/$pkgname/archive/v$pkgver.tar.gz")
md5sums=('ed1384e703f7032e531731842e4da4f7')
source=("git://github.com/mpv-player/mpv.git#commit=${_commit}")
sha256sums=('SKIP')
pkgver() {
cd $pkgname
echo "$(git rev-list --count HEAD).g${_commit}"
}
prepare() {
cd $pkgname-$pkgver
cd $pkgname
./bootstrap.py
}
build() {
cd $pkgname-$pkgver
cd $pkgname
[[ $CARCH == "armv7h" ]] && CFLAGS+=" -fPIC" && CXXFLAGS+=" -fPIC"
@ -47,7 +54,7 @@ build() {
}
package() {
cd $pkgname-$pkgver
cd $pkgname
./waf install --destdir="$pkgdir"
install -d "$pkgdir"/usr/share/doc/mpv/examples