37375312b9
In issue https://github.com/termux/termux-packages/issues/6160 I have found that community repo "its-pointless.github.io" specifies us as maintainer for its packages. This is NOT TRUE and potentially misleads people using these packages. Now TERMUX_PKG_MAINTAINER will contain a default value which is neutral and not specify maintainer. So all packages now have to override it to the correct value. [skip ci] %ci:no-build
41 lines
1.1 KiB
Bash
41 lines
1.1 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://mpv.io/
|
|
TERMUX_PKG_DESCRIPTION="Command-line media player"
|
|
TERMUX_PKG_LICENSE="GPL-3.0"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION=0.33.0
|
|
TERMUX_PKG_REVISION=1
|
|
TERMUX_PKG_SRCURL=https://github.com/mpv-player/mpv/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=f1b9baf5dc2eeaf376597c28a6281facf6ed98ff3d567e3955c95bf2459520b4
|
|
TERMUX_PKG_DEPENDS="ffmpeg, libandroid-glob, libandroid-support, libarchive, libcaca, libiconv, liblua52, pulseaudio, openal-soft, zlib"
|
|
TERMUX_PKG_RM_AFTER_INSTALL="share/icons share/applications"
|
|
|
|
termux_step_pre_configure() {
|
|
LDFLAGS+=" -landroid-glob"
|
|
}
|
|
|
|
termux_step_make_install() {
|
|
cd $TERMUX_PKG_SRCDIR
|
|
|
|
./bootstrap.py
|
|
|
|
./waf configure \
|
|
--prefix=$TERMUX_PREFIX \
|
|
--disable-gl \
|
|
--disable-jpeg \
|
|
--disable-lcms2 \
|
|
--enable-libarchive \
|
|
--enable-libmpv-shared \
|
|
--enable-lua \
|
|
--enable-pulse \
|
|
--enable-openal \
|
|
--enable-caca \
|
|
--disable-alsa \
|
|
--disable-x11
|
|
|
|
./waf -v install
|
|
|
|
# Use opensles audio out be default:
|
|
mkdir -p $TERMUX_PREFIX/etc/mpv
|
|
cp $TERMUX_PKG_BUILDER_DIR/mpv.conf $TERMUX_PREFIX/etc/mpv/mpv.conf
|
|
}
|