mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
69 lines
2.1 KiB
Bash
69 lines
2.1 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
|
|
# - disable retarded rpi detection
|
|
|
|
pkgname=mpv
|
|
epoch=1
|
|
pkgver=0.29.0
|
|
pkgrel=1
|
|
_waf_version=1.9.8
|
|
pkgdesc='a free, open source, and cross-platform media player'
|
|
arch=('x86_64')
|
|
# We link against libraries that are licensed GPLv3 explicitly, libsmbclient
|
|
# being one of these. So our package is GPLv3 only as well.
|
|
license=('GPL3')
|
|
url='https://mpv.io/'
|
|
depends=('desktop-file-utils' 'ffmpeg' 'hicolor-icon-theme' 'jack' 'lcms2'
|
|
'libarchive' 'libcaca' 'libcdio-paranoia' 'libdvdnav' 'libgl' 'libva'
|
|
'libxinerama' 'libxkbcommon' 'libxrandr' 'libxss' 'libxv' 'lua52'
|
|
'rubberband' 'smbclient' 'uchardet' 'vulkan-icd-loader' 'wayland'
|
|
'xdg-utils')
|
|
makedepends=('mesa' 'python-docutils' 'ladspa' 'wayland-protocols'
|
|
'vulkan-headers')
|
|
optdepends=('youtube-dl: for video-sharing websites playback')
|
|
options=('!emptydirs')
|
|
source=("$pkgname-$pkgver.tar.gz::https://github.com/mpv-player/$pkgname/archive/v$pkgver.tar.gz"
|
|
"https://waf.io/waf-${_waf_version}")
|
|
sha256sums=('772af878cee5495dcd342788a6d120b90c5b1e677e225c7198f1e76506427319'
|
|
'167dc42bab6d5bd823b798af195420319cb5c9b571e00db7d83df2a0fe1f4dbf')
|
|
|
|
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-dvb \
|
|
--enable-dvdnav \
|
|
--enable-libsmbclient \
|
|
--enable-tv \
|
|
--enable-libarchive \
|
|
--enable-libmpv-shared \
|
|
--enable-zsh-comp \
|
|
--enable-egl-x11 \
|
|
--disable-rpi
|
|
|
|
./waf build
|
|
}
|
|
|
|
package() {
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
./waf install --destdir="$pkgdir"
|
|
|
|
install -m644 DOCS/{encoding.rst,tech-overview.txt} \
|
|
"$pkgdir"/usr/share/doc/mpv
|
|
}
|