Initial commit
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
# Ignore BPM archives and signatures
|
||||
*.bpm
|
||||
*.bpm.sig
|
||||
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Github repository
|
||||
REPO="mpv-player/mpv"
|
||||
|
||||
# Get tag name using Github Rest API
|
||||
TAG_NAME=$(curl -s -L -H "X-GitHub-Api-Version: 2022-11-28" -H "Authorization: token ${GITHUB_API_TOKEN}" https://api.github.com/repos/"$REPO"/releases/latest | jq -r '.tag_name')
|
||||
|
||||
# Trim 'v' character in TAG_NAME variable
|
||||
VERSION=$(echo "$TAG_NAME" | tr -d 'v')
|
||||
|
||||
echo "$VERSION"
|
||||
@@ -0,0 +1,55 @@
|
||||
name: mpv
|
||||
description: A free, open source, and cross-platform media player
|
||||
version: 0.41.0
|
||||
revision: 1
|
||||
url: https://mpv.io/
|
||||
license: GPL2-or-later
|
||||
maintainers:
|
||||
- [email protected]
|
||||
architecture: any
|
||||
type: source
|
||||
depends:
|
||||
- alsa-lib
|
||||
- desktop-file-utils
|
||||
- ffmpeg
|
||||
- glibc
|
||||
- hicolor-icon-theme
|
||||
- jack
|
||||
- lcms2
|
||||
- libarchive
|
||||
- libass
|
||||
- libcdio
|
||||
- libcdio-paranoia
|
||||
- libdisplay-info
|
||||
- libdrm
|
||||
- libglvnd
|
||||
- libjpeg-turbo
|
||||
- libplacebo
|
||||
- libpulse
|
||||
- libva
|
||||
- libvdpau
|
||||
- libx11
|
||||
- libxext
|
||||
- libxkbcommon
|
||||
- libxpresent
|
||||
- libxrandr
|
||||
- libxscrnsaver
|
||||
- libxv
|
||||
- luajit
|
||||
- mesa
|
||||
- openal
|
||||
- pipewire
|
||||
- sdl2-compat
|
||||
- vulkan-loader
|
||||
- wayland
|
||||
- zlib
|
||||
make_depends:
|
||||
- meson
|
||||
- python-docutils
|
||||
- vulkan-headers
|
||||
- wayland-protocols
|
||||
downloads:
|
||||
- url: https://github.com/mpv-player/mpv/archive/refs/tags/v${BPM_PKG_VERSION}.tar.gz
|
||||
extract_to: ${BPM_SOURCE}
|
||||
extract_strip_components: 1
|
||||
checksum: ee21092a5ee427353392360929dc64645c54479aefdb5babc5cfbb5fad626209
|
||||
@@ -0,0 +1,42 @@
|
||||
# This is the source.sh script. It is executed by BPM in a temporary directory when compiling a source package
|
||||
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
||||
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
||||
|
||||
# The build function is executed in the source directory
|
||||
# This function is used to compile the source code
|
||||
build() {
|
||||
meson setup build --prefix=/usr \
|
||||
--auto-features=auto \
|
||||
-Dlibmpv=true \
|
||||
-Dgl-x11=enabled \
|
||||
-Dcaca=disabled \
|
||||
-Dcdda=enabled \
|
||||
-Ddrm=enabled \
|
||||
-Ddvbin=enabled \
|
||||
-Dopenal=enabled \
|
||||
-Dsdl2-audio=enabled \
|
||||
-Dsdl2-video=enabled \
|
||||
-Dsdl2-gamepad=enabled
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
# The check function is executed in the source directory
|
||||
# This function is used to run tests to verify the package has been compiled correctly
|
||||
check() {
|
||||
meson test -C build --print-errorlogs
|
||||
}
|
||||
|
||||
# The package function is executed in the source directory
|
||||
# This function is used to move the compiled files into the output directory
|
||||
package() {
|
||||
meson install -C build --destdir="$BPM_OUTPUT"
|
||||
|
||||
# Install scripts
|
||||
install -Dm644 "$BPM_SOURCE"/TOOLS/{umpv,mpv_identify.sh,stats-conv.py,idet.sh,lua/*} -t "$BPM_OUTPUT"/usr/share/mpv/scripts
|
||||
|
||||
# Install documentation
|
||||
install -Dm644 "$BPM_SOURCE"/DOCS/{encoding.rst,tech-overview.txt} -t "$BPM_OUTPUT"/usr/share/doc/mpv
|
||||
|
||||
# Install package license
|
||||
install -Dm644 "$BPM_SOURCE"/LICENSE.GPL "$BPM_OUTPUT"/usr/share/licenses/mpv/LICENSE
|
||||
}
|
||||
Reference in New Issue
Block a user