mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 07:57:14 +08:00
mpv: imported from CCR
This commit is contained in:
parent
e841c1772b
commit
f264b590b2
53
mpv/PKGBUILD
Normal file
53
mpv/PKGBUILD
Normal file
@ -0,0 +1,53 @@
|
||||
# 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"
|
||||
}
|
12
mpv/mpv.install
Normal file
12
mpv/mpv.install
Normal file
@ -0,0 +1,12 @@
|
||||
post_install() {
|
||||
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
|
||||
update-desktop-database -q
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
post_install
|
||||
}
|
Loading…
Reference in New Issue
Block a user