mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
61 lines
1.7 KiB
Bash
61 lines
1.7 KiB
Bash
# $Id$
|
|
# Maintainer: Christian Hesse <mail@eworm.de>
|
|
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
|
|
# Contributor: Eivind Uggedal <eivind@uggedal.com>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - armv7/aarch64 needs to be built with fPIC
|
|
|
|
pkgname=mpv
|
|
epoch=1
|
|
pkgver=0.17.0
|
|
pkgrel=3
|
|
_waf_version=1.8.12
|
|
pkgdesc='a free, open source, and cross-platform media player'
|
|
arch=('i686' 'x86_64')
|
|
license=('GPL')
|
|
url='http://mpv.io'
|
|
depends=(
|
|
'ffmpeg' 'lcms2' 'libcdio-paranoia' 'libgl' 'enca' 'libxss'
|
|
'libxinerama' 'libxv' 'libxkbcommon' 'libva' 'wayland' 'libcaca'
|
|
'desktop-file-utils' 'hicolor-icon-theme' 'xdg-utils' 'lua52' 'libdvdnav'
|
|
'libxrandr' 'jack' 'smbclient' 'rubberband'
|
|
)
|
|
makedepends=('mesa' 'python-docutils' 'ladspa' 'hardening-wrapper' 'git')
|
|
optdepends=('youtube-dl: for video-sharing websites playback')
|
|
options=('!emptydirs' '!buildflags')
|
|
source=("$pkgname-$pkgver.tar.gz::https://github.com/mpv-player/$pkgname/archive/v$pkgver.tar.gz"
|
|
"http://www.freehackers.org/~tnagy/release/waf-${_waf_version}")
|
|
sha256sums=('602cd2b0f5fc7e43473234fbb96e3f7bbb6418f15eb8fa720d9433cce31eba6e'
|
|
'01bf2beab2106d1558800c8709bc2c8e496d3da4a2ca343fe091f22fca60c98b')
|
|
|
|
prepare() {
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
install -m755 "${srcdir}"/waf-${_waf_version} waf
|
|
}
|
|
|
|
build() {
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
[[ $CARCH == "armv7h" || $CARCH == "aarch64" ]] && CFLAGS+=" -fPIC" && CXXFLAGS+=" -fPIC"
|
|
|
|
./waf configure --prefix=/usr \
|
|
--confdir=/etc/mpv \
|
|
--enable-cdda \
|
|
--enable-encoding \
|
|
--enable-libmpv-shared \
|
|
--enable-zsh-comp \
|
|
--enable-egl-x11
|
|
|
|
./waf build
|
|
}
|
|
|
|
package() {
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
./waf install --destdir="$pkgdir"
|
|
|
|
install -m644 DOCS/{encoding.rst,tech-overview.txt} \
|
|
"$pkgdir"/usr/share/doc/mpv
|
|
}
|