mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-19 00:21:40 +00:00
community/mpv to 41859.gf1778d1f-1
This commit is contained in:
parent
153b197b74
commit
a191039bb2
1 changed files with 14 additions and 7 deletions
|
@ -7,8 +7,9 @@
|
||||||
# - armv7 needs to be built with fPIC
|
# - armv7 needs to be built with fPIC
|
||||||
|
|
||||||
pkgname=mpv
|
pkgname=mpv
|
||||||
pkgver=0.9.2
|
_commit=f1778d1f
|
||||||
pkgrel=2
|
pkgver=41859.gf1778d1f
|
||||||
|
pkgrel=1
|
||||||
pkgdesc='Video player based on MPlayer/mplayer2'
|
pkgdesc='Video player based on MPlayer/mplayer2'
|
||||||
arch=('i686' 'x86_64')
|
arch=('i686' 'x86_64')
|
||||||
license=('GPL')
|
license=('GPL')
|
||||||
|
@ -23,17 +24,23 @@ makedepends=('mesa' 'python-docutils' 'ladspa' 'hardening-wrapper')
|
||||||
optdepends=('youtube-dl: for video-sharing websites playback')
|
optdepends=('youtube-dl: for video-sharing websites playback')
|
||||||
options=('!emptydirs' '!buildflags')
|
options=('!emptydirs' '!buildflags')
|
||||||
install=mpv.install
|
install=mpv.install
|
||||||
source=("$pkgname-$pkgver.tar.gz::https://github.com/mpv-player/$pkgname/archive/v$pkgver.tar.gz")
|
source=("git://github.com/mpv-player/mpv.git#commit=${_commit}")
|
||||||
md5sums=('ed1384e703f7032e531731842e4da4f7')
|
sha256sums=('SKIP')
|
||||||
|
|
||||||
|
pkgver() {
|
||||||
|
cd $pkgname
|
||||||
|
|
||||||
|
echo "$(git rev-list --count HEAD).g${_commit}"
|
||||||
|
}
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd $pkgname-$pkgver
|
cd $pkgname
|
||||||
|
|
||||||
./bootstrap.py
|
./bootstrap.py
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd $pkgname-$pkgver
|
cd $pkgname
|
||||||
|
|
||||||
[[ $CARCH == "armv7h" ]] && CFLAGS+=" -fPIC" && CXXFLAGS+=" -fPIC"
|
[[ $CARCH == "armv7h" ]] && CFLAGS+=" -fPIC" && CXXFLAGS+=" -fPIC"
|
||||||
|
|
||||||
|
@ -47,7 +54,7 @@ build() {
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd $pkgname-$pkgver
|
cd $pkgname
|
||||||
./waf install --destdir="$pkgdir"
|
./waf install --destdir="$pkgdir"
|
||||||
|
|
||||||
install -d "$pkgdir"/usr/share/doc/mpv/examples
|
install -d "$pkgdir"/usr/share/doc/mpv/examples
|
||||||
|
|
Loading…
Reference in a new issue