mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-20 05:55:35 +08:00
54 lines
1.7 KiB
Bash
54 lines
1.7 KiB
Bash
# Maintainer: Neophytos Kolokotronis <tetris4 AT gmail DOT com>
|
|
# Contributor: Samir Benmendil <ram-z[at]chakra-project[dot]org>
|
|
# Contributions from Arch: https://projects.archlinux.org/svntogit/community.git/tree/trunk?h=packages/mpv
|
|
|
|
pkgname=mpv
|
|
pkgver=0.2.3
|
|
pkgrel=2
|
|
pkgdesc="A movie player and encoder for linux, based on MPlayer/mplayer2"
|
|
arch=('x86_64')
|
|
license=('GPL')
|
|
url="http://mpv.io"
|
|
depends=('portaudio' 'ffmpeg' 'lcms2' 'libxinerama' 'libdvdread' 'libquvi' 'mpg123' 'libxv' 'libxkbcommon' 'libva' 'desktop-file-utils' 'xdg-utils' 'libass')
|
|
makedepends=('mesa' 'python2-docutils')
|
|
options=(!emptydirs)
|
|
install=${pkgname}.install
|
|
source=("https://github.com/mpv-player/$pkgname/archive/v${pkgver}.tar.gz")
|
|
md5sums=('11f25760d7666e6d41d85f06cece8f17')
|
|
|
|
build() {
|
|
# Custom CFLAGS break the mpv build
|
|
unset CFLAGS
|
|
unset LDFLAGS
|
|
|
|
cd "$pkgname-$pkgver"
|
|
|
|
./configure --prefix=/usr \
|
|
--confdir=/etc/mpv \
|
|
--disable-lircc \
|
|
--disable-joystick \
|
|
--disable-radio \
|
|
--disable-radio-capture \
|
|
--disable-radio-v4l2 \
|
|
--disable-rpath \
|
|
--disable-libbs2b \
|
|
--disable-direct3d \
|
|
--disable-corevideo \
|
|
--disable-cocoa \
|
|
--disable-coreaudio
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
|
|
make -j1 DESTDIR="${pkgdir}" install
|
|
|
|
install -d ${pkgdir}/usr/share/doc/mpv/examples
|
|
|
|
# some extra useful stuff "make install" doesn't install
|
|
install -m644 ${srcdir}/$pkgname-$pkgver/etc/{input,example,encoding-example-profiles}.conf "${pkgdir}/usr/share/doc/mpv/examples"
|
|
install -m644 ${srcdir}/$pkgname-$pkgver/DOCS/{encoding.rst,tech-overview.txt} "${pkgdir}/usr/share/doc/mpv"
|
|
install -m755 ${srcdir}/$pkgname-$pkgver/TOOLS/mpv_identify.sh "${pkgdir}/usr/bin"
|
|
}
|