PKGBUILDs/community/mpv/PKGBUILD

62 lines
1.7 KiB
Bash
Raw Normal View History

2015-02-18 00:15:12 +00:00
# $Id$
2015-05-17 23:38:34 +00:00
# Maintainer: Christian Hesse <mail@eworm.de>
2016-02-27 15:12:31 +00:00
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
2015-02-18 00:15:12 +00:00
# Contributor: Eivind Uggedal <eivind@uggedal.com>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
2016-02-27 19:18:29 +00:00
# - armv7/aarch64 needs to be built with fPIC
2015-02-18 00:15:12 +00:00
pkgname=mpv
2015-09-05 00:01:29 +00:00
epoch=1
2016-12-25 21:47:43 +00:00
pkgver=0.23.0
pkgrel=1
2016-04-03 20:41:52 +00:00
_waf_version=1.8.12
2016-04-11 21:41:35 +00:00
pkgdesc='a free, open source, and cross-platform media player'
2015-02-18 00:15:12 +00:00
arch=('i686' 'x86_64')
license=('GPL')
url='http://mpv.io'
depends=(
2015-05-17 23:38:34 +00:00
'ffmpeg' 'lcms2' 'libcdio-paranoia' 'libgl' 'enca' 'libxss'
2015-06-17 13:18:55 +00:00
'libxinerama' 'libxv' 'libxkbcommon' 'libva' 'wayland' 'libcaca'
2015-05-17 01:39:07 +00:00
'desktop-file-utils' 'hicolor-icon-theme' 'xdg-utils' 'lua52' 'libdvdnav'
2016-02-27 15:12:31 +00:00
'libxrandr' 'jack' 'smbclient' 'rubberband'
2015-02-18 00:15:12 +00:00
)
2015-08-28 12:22:27 +00:00
makedepends=('mesa' 'python-docutils' 'ladspa' 'hardening-wrapper' 'git')
2015-02-18 00:15:12 +00:00
optdepends=('youtube-dl: for video-sharing websites playback')
options=('!emptydirs' '!buildflags')
2016-04-03 20:41:52 +00:00
source=("$pkgname-$pkgver.tar.gz::https://github.com/mpv-player/$pkgname/archive/v$pkgver.tar.gz"
2016-04-11 21:41:35 +00:00
"http://www.freehackers.org/~tnagy/release/waf-${_waf_version}")
2016-12-25 21:47:43 +00:00
sha256sums=('8aeefe5970587dfc454d2b89726b603f156bd7a9ae427654eef0d60c68d94998'
2016-04-11 21:41:35 +00:00
'01bf2beab2106d1558800c8709bc2c8e496d3da4a2ca343fe091f22fca60c98b')
2015-02-18 00:15:12 +00:00
prepare() {
2015-09-05 00:01:29 +00:00
cd ${pkgname}-${pkgver}
2015-05-19 12:34:45 +00:00
2016-04-03 20:41:52 +00:00
install -m755 "${srcdir}"/waf-${_waf_version} waf
2015-02-18 00:15:12 +00:00
}
build() {
2015-09-05 00:01:29 +00:00
cd ${pkgname}-${pkgver}
2015-02-18 00:15:12 +00:00
2016-02-27 19:18:29 +00:00
[[ $CARCH == "armv7h" || $CARCH == "aarch64" ]] && CFLAGS+=" -fPIC" && CXXFLAGS+=" -fPIC"
2015-02-18 00:15:12 +00:00
./waf configure --prefix=/usr \
--confdir=/etc/mpv \
2015-09-28 11:44:09 +00:00
--enable-cdda \
2016-04-14 18:02:50 +00:00
--enable-encoding \
--enable-libmpv-shared \
--enable-zsh-comp \
2015-09-28 11:44:09 +00:00
--enable-egl-x11
2015-02-18 00:15:12 +00:00
./waf build
}
package() {
2015-09-05 00:01:29 +00:00
cd ${pkgname}-${pkgver}
2015-02-18 00:15:12 +00:00
./waf install --destdir="$pkgdir"
install -m644 DOCS/{encoding.rst,tech-overview.txt} \
"$pkgdir"/usr/share/doc/mpv
}