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